Skip to content

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.

3 participants