Skip to content

Commit 856331c

Browse files
committed
Fix syntax error
1 parent 82c8805 commit 856331c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: plotly/io/_renderers.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def display_jupyter_version_warnings():
5050
return
5151
elif "jupyter-notebook" in parent_process:
5252
jupyter_notebook = optional_imports.get_module("notebook")
53-
if jupyter_notebook is not None jupyter_notebook.__version__ < "7":
53+
if jupyter_notebook is not None and jupyter_notebook.__version__ < "7":
5454
# Add warning about upgrading notebook
5555
warnings.warn(
5656
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`."

0 commit comments

Comments
 (0)