Skip to content

Notebook backend not working #6454

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

Closed
beojan opened this issue May 21, 2016 · 8 comments
Closed

Notebook backend not working #6454

beojan opened this issue May 21, 2016 · 8 comments

Comments

@beojan
Copy link

beojan commented May 21, 2016

Plotting with the notebook backend results in no plot appearing. In the Jupyter notebook console, I get:

404 GET /static/matplotlib.js?v=20160521145157

Using Matplotlib from git with Python 3.5 on Archlinux.
Problem exists with Jupyter 4.2 installed with PIP, and after upgrading notebook to git master.

@jenshnielsen
Copy link
Member

Following the merge of #5754 the notebook backend has been integrated with the Jypyter notebook extensions. This requires explicitly enabling the Jupyter notebook extension.

jupyter nbextension enable --py matplotlib

Unfortunatly this is not really documented anywhere yet. Unless you really need something on the master branch I would recommend using the 2.x branch at this stage which is significantly more stable.

There are several other issues with the new notebook backend following that merge see #6414

@shoeffner
Copy link

Since it was really hard to find it for me, here is explained how to get it back running, it's in the package ipympl: https://github.com/matplotlib/jupyter-matplotlib .

Also to install you can't use jupyter nbextension enable --py matplotlib (or at least I could not) but of course then you have to use jupyter nbextension enable --py ipympl.

@beojan
Copy link
Author

beojan commented Apr 19, 2017

I'm now getting the same error again, after installing ipympl as @shoeffner said.

@phobson
Copy link
Member

phobson commented Apr 19, 2017

@beojan with the latest version of jupyter, notebook, and matplotlib, installing and enabling an extension shouldn't be required. In other words, on my system:

conda create --name=mpltest python=3.6 matplotlib notebook

Is all I need to use %matplotlib notebook in a jupyter notebook.

@beojan
Copy link
Author

beojan commented Apr 19, 2017 via email

@tacaswell
Copy link
Member

ipympl and the notebook backend are different backends (both run in the notebook, but they use different js and communication methods).

@dstansby
Copy link
Member

@beojan it's been a while since you opened the issue - is this still a problem with newer versions of Matplotlib for you?

@QuLogic
Copy link
Member

QuLogic commented Sep 1, 2020

Closing as there's been no response in a year.

@QuLogic QuLogic closed this as completed Sep 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants