GithubHelp home page GithubHelp logo

Comments (8)

tacaswell avatar tacaswell commented on August 17, 2024

Switching to inline means none of the interactive examples will work. To get them to work under jupyterlab (rather than the classic notebooks) the magics should be switched to %matplotlib widget and the install instruction should be updated to make sure ipympl is installed (on both the js and python sides).

from anatomyofmatplotlib.

hasibzunair avatar hasibzunair commented on August 17, 2024

I am able to run all examples by switching to inline and removing backend at the same time. Also %matplotlib widget, after installing ipympl, results in the following error in the Test Install.ipynb.

Canvas(toolbar=Toolbar(toolitems=[('Home', 'Reset original view', 'home', 'home'), ('Back', 'Back to previous …

I am using Python 3.6.8.

from anatomyofmatplotlib.

tacaswell avatar tacaswell commented on August 17, 2024

I believe you have to restart your server after installing ipympl. One of the strenghts of Matplotlib is that it is interactive (you can pan / zoom, add lines iteratively etc). Switching to the inline backend throws all of that out and replaces the plots to static png that must be generated all in one cell so I am very reluctant to change the tutorial to be based on 'inline'.

from anatomyofmatplotlib.

hasibzunair avatar hasibzunair commented on August 17, 2024

I already restarted after installing it. Still results in the same error. Additionally, running the cell more than once results in another error:

KeyError: '97acd0c8fb504a2288834b349003b4ae'

from anatomyofmatplotlib.

tacaswell avatar tacaswell commented on August 17, 2024

That still sounds like installation issues. Can you open an issue with https://github.com/matplotlib/jupyter-matplotlib ?

from anatomyofmatplotlib.

hasibzunair avatar hasibzunair commented on August 17, 2024

You can find the issue at #148. Any workarounds for the backend issue? Not sure if this matplotlib.use('nbagg') is needed anymore.

from anatomyofmatplotlib.

tacaswell avatar tacaswell commented on August 17, 2024

As I said above, we need to update the notebooks and install instructions to work with ipypmpl rather than nbagg.

from anatomyofmatplotlib.

hasibzunair avatar hasibzunair commented on August 17, 2024

Requesting a review for #33

from anatomyofmatplotlib.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.