Skip to content

Conversation

@frankharkins
Copy link
Member

@frankharkins frankharkins commented Jan 15, 2026

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.show lines. Users can uncomment them to render the figures in their local notebook client.

@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@qiskit-bot
Copy link
Contributor

One or more of the following people are relevant to this code:

Copy link
Collaborator

@Eric-Arellano Eric-Arellano left a 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.

Comment on lines 441 to +442
"# Display the figure\n",
"fig.show(renderer=\"notebook\")\n",
"# fig.show(renderer=\"notebook\")\n",
Copy link
Collaborator

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"

Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

4 participants