From 66c3145e9c640b31a8705e9c190387f5107230a2 Mon Sep 17 00:00:00 2001 From: Mark Engelmann <61390579+vinegar-tom@users.noreply.github.com> Date: Thu, 31 Oct 2024 16:43:48 -0500 Subject: [PATCH 1/2] Add ipywidgets install for plotly I am using just an install of JupyterLab, not through Anaconda, and I needed to also install `ipywidgets` for Plotly to work. This is mentioned in their documentation: https://plotly.com/python/getting-started/#jupyterlab-support --- episodes/data-visualisation.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/episodes/data-visualisation.md b/episodes/data-visualisation.md index 2c6a65a6..73cabd9d 100644 --- a/episodes/data-visualisation.md +++ b/episodes/data-visualisation.md @@ -146,6 +146,8 @@ plotting package in Python called Plotly. First let’s install and then use the ```python # uncomment below to install plotly if the import fails. # !pip install plotly +# you may also need to install ipywidgets. +# !pip install ipywidgets import plotly.express as px ``` From ca292a7274afb72c9d30c833e2dbac7d34cc6222 Mon Sep 17 00:00:00 2001 From: Cody Hennesy Date: Tue, 5 Nov 2024 10:50:18 -0600 Subject: [PATCH 2/2] Update data-visualisation.md --- episodes/data-visualisation.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/episodes/data-visualisation.md b/episodes/data-visualisation.md index 73cabd9d..8bebe48f 100644 --- a/episodes/data-visualisation.md +++ b/episodes/data-visualisation.md @@ -146,8 +146,10 @@ plotting package in Python called Plotly. First let’s install and then use the ```python # uncomment below to install plotly if the import fails. # !pip install plotly -# you may also need to install ipywidgets. + +# if you didn't install Jupyter via Anaconda, you may also need to install ipywidgets. # !pip install ipywidgets + import plotly.express as px ```