-
Notifications
You must be signed in to change notification settings - Fork 163
Remove plotly figures from notebook #4545
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
Conversation
|
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
|
One or more of the following people are relevant to this code: |
Eric-Arellano
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Notebook size matters for the web app performance + bundle size, so this is a solid improvement.
| "# Display the figure\n", | ||
| "fig.show(renderer=\"notebook\")\n", | ||
| "# fig.show(renderer=\"notebook\")\n", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm curious what the content team thinks, but it might be worth explaining what's going on. Like "Uncomment the below line to display the figure"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I think it would help to be more specific in the way Eric suggests.
Plotly's interactive figures contain a lot of code: Some of it JSON (see this PR's diff), some of it HTML and JS (see #4539 (comment)). Since we can't display the figures on our website, I've commented out the two
fig.showlines. Users can uncomment them to render the figures in their local notebook client.