question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

notebook backend not working in jupyterlab

See original GitHub issue

I just installed this on top of my standard env, using conda-forge.

Using standard %matplotlib nbagg as activation command and using standard mpl plotting did not pop up any figure inside a jupyterlab notebook?

Using MPL 2.0 and jupyterlab v0.16 on a Python 3.5 env with conda on OSX 10.11.6 inside Safari 10.0.3

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:49 (21 by maintainers)

github_iconTop GitHub Comments

17reactions
thomasaarholtcommented, Nov 4, 2017

In case others get here and are a little confused: At the beginning of your notebook, run %matplotlib ipympl, not %matplotlib notebook/nbagg.

For installation You need to install node.js. In the terminal, run

conda install notebook jupyterlab # for updating jupyter notebook and lab
pip install ipympl
jupyter labextension install @jupyter-widgets/jupyterlab-manager jupyter-matplotlib
15reactions
blink1073commented, Oct 29, 2017

This is now working (shown with pinned versions so this will always work):

pip install jupyterlab==0.28.11 ipympl==0.0.8
jupyter labextension install @jupyter-widgets/jupyterlab-manager@^0.28 jupyter-matplotlib@^0.1
jupyter lab
%matplotlib ipympl
import matplotlib.pyplot as plt
plt.plot([0,1,1,2])
Read more comments on GitHub >

github_iconTop Results From Across the Web

Using %matplotlib notebook after %matplotlib inline in Jupyter ...
This problem is mainly due to incompatibilities between different main-loops of the GUI backend. Because normally each backend is also taking ...
Read more >
Plotly backend does not work in jupyterlab? - HoloViews
Hi, I am trying to plot with Plotly backened in jupyterlab with the following commands import holoviews as hv from holoviews import ...
Read more >
Running a notebook server
This document describes how you can secure a notebook server and how to run it on a public interface. Important. This is not...
Read more >
Jupyter Notebook Plotting — PyVista 0.37.0 documentation
At the moment, itkwidgets and ipyvtklink are incompatible with Jupyterlab 3, and will result in a “Error displaying widget: model not found” message...
Read more >
Possibility to separate the JupyterLab Web and Server
You should keep in mind though that notebook extensions will not work in this scenario. The extensions that users install are put on...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found