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

Chapter 2 Plot error #3

Closed
shayegh opened this issue Mar 27, 2020 · 2 comments
Closed

Chapter 2 Plot error #3

shayegh opened this issue Mar 27, 2020 · 2 comments

Comments

@shayegh
Copy link

shayegh commented Mar 27, 2020

Hi,
in chapter two, I follow your code but when I try to use "Plot"

# plot results
cerebro.plot(iplot=True, volume=False)

I got following error

ReferenceError: IPython is not defined
    at eval (eval at runCodeHere (vscode-resource://file///c%3A/Users/mojTaba/.vscode/extensions/ms-python.python-2020.3.69010/out/datascience-ui/notebook/vendors~nteract_transforms.bundle.js:2:11583), <anonymous>:764:1)
    at runCodeHere (vscode-resource://file///c%3A/Users/mojTaba/.vscode/extensions/ms-python.python-2020.3.69010/out/datascience-ui/notebook/vendors~nteract_transforms.bundle.js:2:11583)
    at t.value (vscode-resource://file///c%3A/Users/mojTaba/.vscode/extensions/ms-python.python-2020.3.69010/out/datascience-ui/notebook/vendors~nteract_transforms.bundle.js:2:12015)
    at Di (vscode-resource://file///c%3A/Users/mojTaba/.vscode/extensions/ms-python.python-2020.3.69010/out/datascience-ui/notebook/commons.initial.bundle.js:2:1299316)
    at Li (vscode-resource://file///c%3A/Users/mojTaba/.vscode/extensions/ms-python.python-2020.3.69010/out/datascience-ui/notebook/commons.initial.bundle.js:2:1302238)
    at vscode-resource://file///c%3A/Users/mojTaba/.vscode/extensions/ms-python.python-2020.3.69010/out/datascience-ui/notebook/commons.initial.bundle.js:2:1315318
    at Object.t.unstable_runWithPriority (vscode-resource://file///c%3A/Users/mojTaba/.vscode/extensions/ms-python.python-2020.3.69010/out/datascience-ui/notebook/commons.initial.bundle.js:2:6091)
    at Sl (vscode-resource://file///c%3A/Users/mojTaba/.vscode/extensions/ms-python.python-2020.3.69010/out/datascience-ui/notebook/commons.initial.bundle.js:2:1315252)
    at Cl (vscode-resource://file///c%3A/Users/mojTaba/.vscode/extensions/ms-python.python-2020.3.69010/out/datascience-ui/notebook/commons.initial.bundle.js:2:1315028)
    at wl (vscode-resource://file///c%3A/Users/mojTaba/.vscode/extensions/ms-python.python-2020.3.69010/out/datascience-ui/notebook/commons.initial.bundle.js:2:1314373)

All other parts work as expected.

@erykml
Copy link
Collaborator

erykml commented Mar 30, 2020

Hi,

Are you running the code from withing VS Code? This might somehow be an issue.
Please try running it in Jupyter Notebook/Lab and let me know if the problem persists.

@shayegh
Copy link
Author

shayegh commented Mar 31, 2020

Hi,
Thanks.
You were right. I ran it in vs code and got the error.
when I run it in Jupyter Notebook it works fine.

@shayegh shayegh closed this as completed Mar 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants