Showing Plotly graphs in Jupyter notebook

Plotly rendering depends on javascript execution and Jupyter notebooks by default disallow that to prevent any malicious code execution.

Few steps are required to make sure that Plotly graphs show up when you open a new Jupyter notebook.

  • Click on the “Not Trusted” button on the top right corner
  • Click “Trust” in the confirmation dialog
  • Restart kernel or refresh the page

Plotly graphs should show up now.

Relevant screenshots:
CleanShot 2021-06-24 at 20.40.48


CleanShot 2021-06-24 at 20.41.33

2 Likes