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

Optional compress_dhist() requires pickleshare #14416

Open
astromatt opened this issue Apr 23, 2024 · 0 comments
Open

Optional compress_dhist() requires pickleshare #14416

astromatt opened this issue Apr 23, 2024 · 0 comments

Comments

@astromatt
Copy link

astromatt commented Apr 23, 2024

While changing directory I am receiving a warning:

In [1]: cd ..
/Users/matt/.venv/lib/python3.12/site-packages/IPython/core/magics/osm.py:417: UserWarning: This is now an optional IPython functionality, setting dhist requires you to install the `pickleshare` library.
  self.shell.db['dhist'] = compress_dhist(dhist)[-100:]

I am not interested in having this feature simply because I teach Python. Each week, I set up a new repository with a virtual environment and a fresh IPython installation. Therefore, I would have to remember to install pickleshare every time, as well as explain why to do that to my students.

How can I turn these warnings off?
I have searched all my config files for anything remotely related to dhist and found nothing.

PS. The idea of Pickleshare is quite good. It would be nice to see it in the standard library as a rewrite of shelve or something.

@astromatt astromatt changed the title compress_dhist requires pickleshare Optional compress_dhist() requires pickleshare Apr 23, 2024
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

1 participant