-
-
Notifications
You must be signed in to change notification settings - Fork 78
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
Use 100%cpu! work with plotly-extension and 'create a new view of output' of a chart that output by plotly. #165
Comments
Here is my solution:
My way is a little different from the installation guide. The command that I used as follows: jupyter labextension uninstall @jupyterlab/plotly-extension
pip install ipywidgets
# (OS X/Linux :) My machine is mac)
export NODE_OPTIONS=--max-old-space-size=4096
# (Windows)
set NODE_OPTIONS=--max-old-space-size=4096
# Jupyter widgets extension
jupyter labextension install @jupyter-widgets/jupyterlab-manager --no-build
# FigureWidget support
jupyter labextension install plotlywidget --no-build
# Build extensions (must be done to activate extensions since --no-build is used above)
jupyter lab build
# Unset NODE_OPTIONS environment variable
# (OS X/Linux)
unset NODE_OPTIONS
# (Windows)
set NODE_OPTIONS= Done. |
|
|
|
|
|
I can't reproduce the CPU issue when running this code. It's worth mentioning that py.init_notebook_mode(connected=True) is unnecessary with plotly-extension installed and I'm 99% certain it doesn't do anything in JupyterLab (because plotly-extension renders the application/vnd.plotly.v1 output vs. the text/html output that inserts plotly.js scripts into the document). See https://github.com/plotly/plotly.py/blob/master/plotly/offline/offline.py#L111-L147 for reference. |
same problem here! |
solved it by migrating to v3:
Python Packages:
JupyterLab Extensions:
to:
|
Use 100% CPU
Use 100%cpu! Work with plotly-extension. Right click an output cell -> 'create a new view of output' of a chart that output by plotly.
Steps to reproduce the behavior:
you can use this code :
Screenshots
Desktop
OS: macOS Mojave 10.14
Browser: Chrome, Safari
JupyterLab: 0.35.1
Originally opened as jupyterlab/jupyterlab#5500 by @kondongx, migration requested by @blink1073
The text was updated successfully, but these errors were encountered: