diff --git a/lectures/_toc.yml b/lectures/_toc.yml index a9e5b70e..b0820c7a 100644 --- a/lectures/_toc.yml +++ b/lectures/_toc.yml @@ -5,6 +5,7 @@ parts: numbered: true chapters: - file: about + - file: plotly - caption: Economic Data numbered: true chapters: diff --git a/lectures/plotly.md b/lectures/plotly.md new file mode 100644 index 00000000..adf401ed --- /dev/null +++ b/lectures/plotly.md @@ -0,0 +1,25 @@ +--- +jupytext: + text_representation: + extension: .md + format_name: myst +kernelspec: + display_name: Python 3 + language: python + name: python3 +--- + +# Plotly Example + +```{code-cell} ipython3 +!pip install plotly +``` + +An example plot + +```{code-cell} +# x and y given as array_like objects +import plotly.express as px +fig = px.scatter(x=[0, 1, 2, 3, 4], y=[0, 1, 4, 9, 16]) +fig.show() +``` \ No newline at end of file