Skip to content

Commit

Permalink
Update _show.py
Browse files Browse the repository at this point in the history
  • Loading branch information
joachimpoutaraud committed Jan 4, 2024
1 parent 7ffbaae commit b0e30b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions musicalgestures/_show.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# from IPython.core.display import Video
from base64 import b64encode
import musicalgestures
# from musicalgestures._utils import get_widthheight
from musicalgestures._utils import in_colab


def mg_show(self, filename=None, key=None, mode='windowed', window_width=640, window_height=480, window_title=None):
Expand Down Expand Up @@ -39,7 +39,7 @@ def show(file, width=640, height=480, mode='windowed', title='Untitled', parent=
"""

# Check's if the environment is a Google Colab document
if musicalgestures._utils.in_colab():
if in_colab():
mode = 'notebook'

if mode.lower() == 'windowed':
Expand Down

0 comments on commit b0e30b4

Please sign in to comment.