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

TypeError that occurs in IPython notebook but not IPython shell #28

Closed
kohaugustine opened this issue Mar 2, 2017 · 4 comments
Closed

Comments

@kohaugustine
Copy link

Hi, I am posting this issue up here after having received zero help from Stackoverflow. I would greatly appreciate anyone's help on this!

Cryptic TypeError: 'decimal.Decimal' object cannot be interpreted as an integer

@Carreau
Copy link
Member

Carreau commented Mar 2, 2017

San you check the value of sys.executable in both ?
Can you compare the values of sys.modules.keys() in both notebook and IPython ?
Are you a user of libraries like SymPy/Sage ? (I'm thinking the transformer that auto wrap numbers in AST )

The likely cause is an extension which is loaded only by ipykernel

@Carreau
Copy link
Member

Carreau commented Mar 2, 2017

Check also the content of ~/.ipython/profile_default/ipython_kernel_config.py

@kohaugustine
Copy link
Author

Were you referring to this post from your repeated response to me on ipython/ipython#10367 ? Sorry that I duplicated my question across these two repos...

@Carreau
Copy link
Member

Carreau commented Mar 3, 2017

Were you referring to this post from your repeated response to me on ipython/ipython#10367 ? Sorry that I duplicated my question across these two repos...

Ha yes ! thanks, closing here we can focus on the other one. GitHub still does miss some of my messages though.

@Carreau Carreau closed this as completed Mar 3, 2017
tonyfast added a commit to deathbeds/ipynb that referenced this issue Jan 2, 2020
* Create a watchdog trick for modules that is sensitive to notebook paths Fixes ipython#28
* Catch an error when a file is created in the watcher
* Use the watcher while developing importnb
* Rename the unittests to something more canonical.
* Add the github pages deployment to travis.
* Fix the watcher instructions in the readme.
* Add the watchdog requirement for the setup
* Manually install pyyaml from to pass 3.7dev
* Add context to the readme
* Deploy pages on any travis_branch
* Escape the profile read error int he ipython extension
* add pip to the cache on travis
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

2 participants