plotly / plotly/plotly.py

Jupyterlab 3: Renderer broken inside fresh env with extensions properly installed

Open
#3,052 7 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

bug P3
Dominant language
Python
Stars
18.8k
Forks
2.8k
Avg merge
16h 26m
Merged PRs (30d)
21

Description

Thanks for having detailed troubleshooting docs for Jupyterlab issues, however I'm unable to use the plotly_mimetype renderer (blank plot) in a fresh Jupyterlab (3.0.5) conda environment having followed the troubleshooting and getting started guides almost to the letter. The Plotly express plot works if I downgrade to an early 2.x jupyterlab version. This point in particular makes me suspicous that I have encountered an issue, perhaps related to Lab 3.x

Have I somehow missed something? Using Mac OS 10.14.6

Server

  1. conda create -n jlab-server jupyterlab nodejs ipywidgets>=7.5
  2. jupyter labextension install jupyterlab-plotly@4.14.3
  3. jupyter labextension install @jupyter-widgets/jupyterlab-manager plotlywidget@4.14.3
  4. jupyter lab build

Kernel
conda install -c plotly plotly=4.14.3

Both jupyter labextension list and the lab UI confirm that these extensions are installed. I'm not confusing server and kernel environments.

$ jupyter labextension list
JupyterLab v3.0.5
/Users/bede/conda/envs/jlab-server/share/jupyter/labextensions
        @jupyter-widgets/jupyterlab-manager v3.0.0 enabled OK (python, jupyterlab_widgets)

Other labextensions (built into JupyterLab)
   app dir: /Users/bede/conda/envs/jlab-server/share/jupyter/lab
        jupyterlab-plotly v4.14.3 enabled OK
        plotlywidget v4.14.3 enabled OK

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the blank plot with the listed JupyterLab 3.0.5 server setup, extensions, and Plotly 4.14.3 kernel environment. Start with the linked troubleshooting and getting-started guidance, then compare the working JupyterLab 2.x setup with the extension list shown in the report. Done means identifying the JupyterLab 3 compatibility problem and confirming that plotly_mimetype renders correctly in a fresh environment.

Written by the indexing model from the issue text.

Assessment

Tech stack
jupyter-notebook, python
Domain
data-visualization, frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.