Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import pickle #48

Open
rutujar opened this issue Mar 30, 2019 · 2 comments
Open

Import pickle #48

rutujar opened this issue Mar 30, 2019 · 2 comments

Comments

@rutujar
Copy link

rutujar commented Mar 30, 2019

How to install pickle or cpickle in Python3 for ubuntu 16. 04?
Is there any documentation for pickle pls share it.

@cpuodzius
Copy link

I'm having the same problem

@eldad-a
Copy link

eldad-a commented May 4, 2020

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.

lyh16 added a commit to lyh16/ipycache that referenced this issue Mar 22, 2022
Implementing both pull request rossant#44 and fix for issue rossant#48 mentioned in [comment](rossant#48 (comment)) by @eldad-a.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants