Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More %matplotlib widget in comments #414

Merged
merged 2 commits into from
Jan 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ wget
numba
numpy
matplotlib
ipympl
pygments
scipy
h5py
tqdm
openpmd_viewer
openpmd_viewer
4 changes: 2 additions & 2 deletions openpmd_viewer/openpmd_timeseries/interactive.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion openpmd_viewer/openpmd_timeseries/plotter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.")