Skip to content

Commit

Permalink
fixing plotly (#195)
Browse files Browse the repository at this point in the history
  • Loading branch information
choldgraf authored Jun 11, 2020
1 parent abb6c3c commit 7cef586
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
1 change: 0 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ["_static"]
jupyter_sphinx_require_url = ""

copybutton_selector = "div:not(.output) > div.highlight pre"

Expand Down
8 changes: 0 additions & 8 deletions docs/examples/interactive.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,21 +55,13 @@ Plotly is another interactive plotting library that provides a high-level API fo
visualization. See the [Plotly JupyterLab documentation](https://plotly.com/python/getting-started/#jupyterlab-support-python-35)
to get started with Plotly in the notebook.

```{note}
Plotly uses renderers to output different kinds of information when you display a plot. Using the
`plotly_mimetype` renderer as below will cause the HTML to have a static PNG. Experiment with
the renderer option to get the output you want.
```

Below is some example output.

```{code-cell} ipython3
import plotly.io as pio
import plotly.express as px
import plotly.offline as py
pio.renderers.default = "plotly_mimetype"
df = px.data.iris()
fig = px.scatter(df, x="sepal_width", y="sepal_length", color="species", size="sepal_length")
fig
Expand Down

0 comments on commit 7cef586

Please sign in to comment.