Timeline for answer to JupyterLab interactive plot by Mateen Ulhaq
Current License: CC BY-SA 4.0
Post Revisions
24 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Feb 3 at 13:32 | history | edited | Benjamin Loison | CC BY-SA 4.0 |
Remove unnecessary spaces
|
| Aug 5, 2024 at 12:15 | comment | added | Aleksejs Fomins | jupyterlab-4.2.4. Followed suggestions for jupyterlab 3+. plt.plot(...) results in "Loading widget..." text and no plot. | |
| Oct 10, 2021 at 1:18 | history | edited | Mateen Ulhaq | CC BY-SA 4.0 |
Separate instructions for JupyterLab 2.0 and 3.0.
|
| Oct 9, 2021 at 12:51 | history | edited | krassowski | CC BY-SA 4.0 |
Update for JupyterLab 3.0+, remove incorrect nbextension step
|
| Sep 14, 2021 at 1:21 | comment | added | Stone | also make sure %matplotlib notebook comes before import matplotlib.pyplot as plt | |
| Sep 6, 2021 at 16:02 | history | edited | Trenton McKinney | CC BY-SA 4.0 |
as per https://github.com/matplotlib/ipympl#ipympl if using conda, then use the conda install, not pip
|
| May 6, 2021 at 15:59 | comment | added | Emy |
Thanks, I managed to make it work. I did all of the above, restarted the computer, closed all the servers, then opened a notebook in a new server and now %matplotlib widget is working.
|
|
| May 6, 2021 at 15:56 | comment | added | Paidoo | @Emy, what version of JupyterLab are you using? If using v.3.*, see my answer below | |
| May 5, 2021 at 15:39 | comment | added | Emy |
I did all of the above, but I still get the error Javascript Error: Can't find variable: IPython
|
|
| Apr 22, 2021 at 8:57 | comment | added | Mateen Ulhaq | @Christoph90 Sounds like you need to install Node.js. | |
| Apr 22, 2021 at 8:13 | comment | added | Christoph90 |
Step 5 fails with An error occured. ValueError: Please install nodejs >=12.0.0 before continuing. nodejs may be installed using conda or directly from the nodejs website. See the log file for details: /tmp/jupyterlab-debug-gklm270m.log. Using pyenv for managing my python installations.
|
|
| Aug 6, 2020 at 3:48 | comment | added | volante | Caveat: remember to do plt.figure() before the next plot if you're coming to this from using "inline". | |
| Apr 20, 2020 at 17:47 | comment | added | NeStack | Do I have to complete these installation instructions for every new virtual conda environment I create or will the interactive plotting be available for all virtual environments I am using? | |
| Jan 18, 2020 at 11:30 | comment | added | NeStack | "restart" was the critical instruction for me. It wasn't enough the quit and start again jupyterlab in the terminal, only after restarting the computer the plots finally worked | |
| Nov 22, 2019 at 9:57 | review | Suggested edits | |||
| Nov 22, 2019 at 11:51 | |||||
| Aug 22, 2019 at 23:25 | comment | added | MD004 |
I had to conda install widgetsnbextension -c conda-forge before I could enable widgetsnbextension (but then I ran into other issues with jupyterlab being the wrong version, which is a different story...)
|
|
| Jul 22, 2019 at 9:06 | history | edited | Mateen Ulhaq | CC BY-SA 4.0 |
deleted 41 characters in body
|
| S Jul 22, 2019 at 9:02 | history | suggested | Simon Streicher | CC BY-SA 4.0 |
Added two extra steps: (1) ensure newest jupyterlab, (2) ensure nbextension is enables. Also added a summaritive script for Anaconda users.
|
| Jul 22, 2019 at 7:08 | comment | added | Simon Streicher | I've added two steps that was necessary on my system: (1) upgrade jupyterlab, (2) enable nbextension. | |
| Jul 22, 2019 at 7:06 | review | Suggested edits | |||
| S Jul 22, 2019 at 9:02 | |||||
| Jul 22, 2019 at 5:17 | comment | added | Simon Streicher | There is an issue with some older jupyter lab versions and the nodejs yarn package (which jupyter uses for its install procedure). In such a case either update/upgrade your jupyter-lab or follow this fix: github.com/jupyter-widgets/ipywidgets/issues/… | |
| Jun 14, 2019 at 17:32 | comment | added | N.M | Mateen, thank you for compiling the steps - why is it necessary to install jupyterlab-manager ? | |
| May 3, 2019 at 0:46 | history | edited | Mateen Ulhaq | CC BY-SA 4.0 |
added 105 characters in body
|
| Apr 25, 2019 at 11:41 | history | answered | Mateen Ulhaq | CC BY-SA 4.0 |