Skip to content

Notebook backend not working #6454

Closed
Closed

Description

@beojan

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.

Activity

  1. jenshnielsen commented on May 21, 2016

    @jenshnielsen
    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

  2. shoeffner commented on Sep 20, 2016

    @shoeffner

    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.

  3. beojan commented on Apr 19, 2017

    @beojan
    Author

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

  4. phobson commented on Apr 19, 2017

    @phobson
    Member

    @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.

  5. beojan commented on Apr 19, 2017

    @beojan
    Author
  6. tacaswell commented on Apr 19, 2017

    @tacaswell
    Member

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

  7. dstansby commented on Jul 21, 2019

    @dstansby
    Member

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

  8. QuLogic commented on Sep 1, 2020

    @QuLogic
    Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions