Skip to content

Commit

Permalink
fix: ensure variable is always defined
Browse files Browse the repository at this point in the history
  • Loading branch information
sanjayankur31 committed Jul 21, 2024
1 parent e0606f9 commit ad48dac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pyneuroml/plot/PlotMorphologyVispy.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,15 @@
logger = logging.getLogger(__name__)
logger.setLevel(logging.INFO)

pynml_in_jupyter = False

try:
from vispy import app, scene, use
from vispy.geometry.generation import create_sphere
from vispy.geometry.meshdata import MeshData
from vispy.scene.visuals import InstancedMesh
from vispy.util.transforms import rotate

pynml_in_jupyter = False
if app.Application.is_interactive(app):
pynml_in_jupyter = True
from IPython.display import display
Expand Down

0 comments on commit ad48dac

Please sign in to comment.