diff --git a/docs/requirements.txt b/docs/requirements.txt index 687253f..a2b4040 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -7,8 +7,9 @@ wget numba numpy matplotlib +ipympl pygments scipy h5py tqdm -openpmd_viewer \ No newline at end of file +openpmd_viewer diff --git a/openpmd_viewer/openpmd_timeseries/interactive.py b/openpmd_viewer/openpmd_timeseries/interactive.py index fe78a6e..d44aa40 100644 --- a/openpmd_viewer/openpmd_timeseries/interactive.py +++ b/openpmd_viewer/openpmd_timeseries/interactive.py @@ -97,8 +97,8 @@ def refresh_field(change=None, force=False): "\n\nIt seems that you are using ipywidgets 7 and " "`%matplotlib inline`. \nThis can cause issues when " "using `slider`.\nIn order to avoid this, you " - "can either:\n- use `%matplotlib notebook`\n- or " - "downgrade to ipywidgets 6 (with `pip` or `conda`).", + "can either:\n- use `%matplotlib widget`\n- or " + "upgrade ipywidgets to version 8 (with `pip` or `conda`).", UserWarning) # Handle plotting options diff --git a/openpmd_viewer/openpmd_timeseries/plotter.py b/openpmd_viewer/openpmd_timeseries/plotter.py index 6742c59..8585172 100644 --- a/openpmd_viewer/openpmd_timeseries/plotter.py +++ b/openpmd_viewer/openpmd_timeseries/plotter.py @@ -421,4 +421,4 @@ def check_matplotlib(): warnings.warn("\n\nIt seems that you are using the matplotlib MacOSX " "backend. \n(This typically obtained when typing `%matplotlib`.)\n" "With recent version of Jupyter, the plots might not appear.\nIn this " - "case, switch to `%matplotlib notebook` and restart the notebook.") + "case, switch to `%matplotlib widget` and restart the notebook.")