Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating "JupyterLab Support" Docs + Prebuilt JupyterLab 3.0 extension #3055

Closed
layne-sadler opened this issue Jan 30, 2021 · 7 comments
Closed

Comments

@layne-sadler
Copy link

layne-sadler commented Jan 30, 2021

Greetings. Is this section of the documentation still up-to-date?
https://github.com/plotly/plotly.py#jupyterlab-support

As you probably know, JupyterLab 3.0 allows for prebuilt extensions that can be pip installed. This removes the user-facing dependency on Node.js and skips the lengthy extension/ lab build process, which results in a much smoother experience. Additionally, you could specify ipywidgets as a pypi dependency of the extension's setup.py install_requires=[]. Making the installation process a one-liner.

Thank you.

@layne-sadler layne-sadler changed the title Updating "JupyterLab Support" Documentation/ Prebuilt Extension? Updating "JupyterLab Support" Docs + Prebuilt JupyterLab 3.0 extension Jan 30, 2021
@nicolaskruchten
Copy link
Contributor

Yes, this section is up to date. We are aware of prebuilt extensions and will include them in our build process in the future, we just haven't gotten around to it yet. See #3036

@nicolaskruchten
Copy link
Contributor

OK, if someone wants to kick the tires on it, pip install plotly==5.0.0rc1 should "just work" and install the prebuilt extension and it'll all just work in JLab3 regardless if you have our other extensions already installed.

@aiqc
Copy link

aiqc commented Jun 2, 2021

@nicolaskruchten Success! Thank you!

Upgrade workflow:

  • Uninstalled plotly-charts or whatever the extension was called.
  • Rebuilt jupyterlab env.
  • As expected, plots failed to display.
  • Installed plotly==5.0.0rc1.
  • Plots failed to load.
  • Restarted kernel.
  • Plots failed to load.
  • Restarted jupyterlab server. 👈
    • Do you know of a workaround without shutting down server?
  • Plots succeeded.

image

@aiqc
Copy link

aiqc commented Jun 2, 2021

@nicolaskruchten would you guys be interested in demoing it at next month's Jupyter community call?

@nicolaskruchten
Copy link
Contributor

Glad it's working well! I'd be happy to chat about our stuff any time but really in this particular case it's all @fcollonval's work here so maybe ask them? This was the (epic) PR that resolved a whole bunch of open issues in our extension all at once: #3142

@aiqc
Copy link

aiqc commented Jun 2, 2021

Ohhhh @fcollonval now I see what you were saying by "you did it." Ha.

@nicolaskruchten
Copy link
Contributor

This is now released as part of v5.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants