Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Fix syntax error
  • Loading branch information
marthacryan committed Mar 21, 2025
commit 856331c18a3edb64f6850d6dd032155ba74598a1
2 changes: 1 addition & 1 deletion plotly/io/_renderers.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def display_jupyter_version_warnings():
return
elif "jupyter-notebook" in parent_process:
jupyter_notebook = optional_imports.get_module("notebook")
if jupyter_notebook is not None jupyter_notebook.__version__ < "7":
if jupyter_notebook is not None and jupyter_notebook.__version__ < "7":
# Add warning about upgrading notebook
warnings.warn(
f"Plotly version >= 6 requires Jupyter Notebook >= 7 but you have {jupyter_notebook.__version__} installed.\n To upgrade Jupyter Notebook, please run `pip install notebook --upgrade`."
Expand Down