danielfrg / mkdocs-jupyter

Use Jupyter Notebook in mkdocs
https://mkdocs-jupyter.danielfrg.com
Apache License 2.0
362 stars 45 forks source link

must specify renderer for showing Plotly graphs #192

Open butterlyn opened 3 months ago

butterlyn commented 3 months ago

Please add to the documentation that you must specify the "notebook" renderer for plotly to work.

For example:

import plotly.express as px
df = px.data.iris()
fig = px.scatter(df, x="sepal_width", y="sepal_length")
fig.show(renderer="notebook")

The example code in the demo project no longer works without specifying the renderer.