Open rutujar opened 5 years ago
I'm having the same problem
In case this is still useful, try:
pip install git+https://github.com/rossant/ipycache --upgrade
as suggested here: 46#issuecomment-570160148
NB: Upon running %load_ext ipycache
, expect ShimWarning
and UserWarning
, something like:
.../lib/python3.7/site-packages/IPython/config.py:13: ShimWarning: The `IPython.config` package has been deprecated since IPython 4.0. You should import from traitlets.config instead.
"You should import from traitlets.config instead.", ShimWarning)
.../lib/python3.7/site-packages/ipycache.py:17: UserWarning: IPython.utils.traitlets has moved to a top-level traitlets package.
from IPython.utils.traitlets import Unicode
One way to circumvent the Warnings
is to modify in ipycache.py
(note the lines which include # replaced
):
from traitlets.config.configurable import Configurable # replaced `from IPython.config.configurable import Configurable`
from IPython.core import magic_arguments
from IPython.core.magic import Magics, magics_class, line_magic, cell_magic
from traitlets import Unicode # replaced `from IPython.utils.traitlets import Unicode` ; see https://github.com/rossant/ipycache/pull/44/commits/7573eaefe409ec5b47c63e63001a3d6f2ea38fae
from IPython.utils.io import CapturedIO, capture_output
from IPython.display import clear_output
Also note that 46#issuecomment-581871198, where the @rossant wrote:
"I'm no longer maintaining this repository but could give github/pypi permissions to anyone who would volunteer to maintain it"
Finally, some alternative approaches to caching
are discussed here:
Review notebook cacheing and execution packages #3;
Also found dask.cache and cachey, which I have not had the chance to explore yet.
How to install pickle or cpickle in Python3 for ubuntu 16. 04?
Is there any documentation for pickle pls share it.