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

NameError: name 'get_ipython' is not defined while importing deep_xf #2

Open
ahbon123 opened this issue Aug 31, 2023 · 1 comment
Open
Assignees

Comments

@ahbon123
Copy link

ahbon123 commented Aug 31, 2023

Hello, I imported deep_xf and got the error NameError: name 'get_ipython' is not defined. I imported from IPython import get_ipython`, but I still got the error. How to solve it?

from IPython import get_ipython
from deep_xf.main import *
from deep_xf.dpp import *
from deep_xf.forecast_ml import *
from deep_xf.forecast_ml_extension import *
from deep_xf.stats import *
from deep_xf.utility import *
from deep_xf.denoise import *
from deep_xf.similarity import *

An error was returned:

Traceback (most recent call last):
   File "/Users/x/Documents/smart_steps/Industrial Operation Index/utils/DeepXF_test.py", line 2, in <module>
     from deep_xf.main import *
   File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/deep_xf/__init__.py", line 2, in <module>
     from . import main
   File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/deep_xf/main.py", line 14, in <module>
     from .utility import *
   File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/deep_xf/utility.py", line 27, in <module>
     get_ipython().run_line_magic('matplotlib', 'inline')
NameError: name 'get_ipython' is not defined
@ajayarunachalam ajayarunachalam self-assigned this Sep 1, 2023
@ajayarunachalam
Copy link
Owner

Try upgrading the IPython module something like this - pip3 install --upgrade ipython. This has no dependency on the deep_xf package as far as I remember.

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