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

[FIXED] matplotlib import error on a remote server #1

Open
kevleininger opened this issue Dec 30, 2015 · 5 comments
Open

[FIXED] matplotlib import error on a remote server #1

kevleininger opened this issue Dec 30, 2015 · 5 comments

Comments

@kevleininger
Copy link

There is an error in chapter 2, in the "Downloading and loading a dataset". You must run "%matplotlib inline" before you run "import matplotlibpyplot as plt"

If you don't, you get an error on the import statement.

@rossant
Copy link
Contributor

rossant commented Dec 30, 2015

The order shouldn't matter; what is the exact error message?
Also the import should be import matplotlib.pyplot as plt (there is a dot)

@kevleininger
Copy link
Author

Sorry. Typo on the missing .

I am using ubunutu in AWS and Jupyter. See the attached screen shot for the error. If I reverse the order (I found this fix posted somewhere...can't remember where) it works fine.

screen shot 2015-12-30 at 9 42 21 am

@rossant rossant changed the title Learning iPython for Interactive Computing [FIXED] matplotlib import error on a remote server Dec 30, 2015
@rossant
Copy link
Contributor

rossant commented Dec 30, 2015

Thanks! this is a bug with conda matplotlib on headless systems like AWS, and inverting the order does seem to be an easy "fix". See conda/conda#1051. I've changed the name of the issue accordingly.

@ausernametaken
Copy link

For me, switching those two does not work. I have to install pyqt4 to solve the issue.
See this answer on SO.

@rossant
Copy link
Contributor

rossant commented Jan 17, 2016

Good to know thanks. To install pyqt4 with conda use conda install pyqt.

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