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

Fix MIDI in Google Colab Notebooks (v8) #1281

Merged
merged 3 commits into from
Apr 26, 2022
Merged

Fix MIDI in Google Colab Notebooks (v8) #1281

merged 3 commits into from
Apr 26, 2022

Conversation

mscuthbert
Copy link
Member

Jupyter Notebook comes with the require.js script for loading other modules already included. Google Colab does not. Showing MIDI in the notebook needs to have require.js around. Google Colab runs each cell in its own WebWorker; thus the loading of require.js and music21j must happen in each cell -- no global variables.

Jupyter Notebook comes with the require.js script for loading other modules already included.  Google Colab does not.  Showing MIDI in the notebook needs to have require.js around.  Google Colab runs each cell in its own WebWorker; thus the loading of require.js and music21j must happen in each cell -- no global variables.

Since Google Colab is still running Python 3.7 (and selecting another core is a PAIN!) and music21 v8 will be 3.8+ only, this functionality is being backported to v7 and a 7.3.2 version will be released.
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.006%) to 93.335% when pulling a1aa20a on colab-midi into 333f2a2 on master.

@mscuthbert mscuthbert merged commit cf46993 into master Apr 26, 2022
@mscuthbert mscuthbert deleted the colab-midi branch April 26, 2022 20:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants