Skip to content

Commit

Permalink
add mido import for fixing issues in Colab
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlosCancino-Chacon committed Oct 21, 2024
1 parent e94b1f2 commit d2444ca
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions notebooks/01_introduction/Partitura_tutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@
"id": "view-in-github"
},
"source": [
"[![Open in Colab](\"https://colab.research.google.com/assets/colab-badge.svg\")](https://colab.research.google.com/github/CPJKU/partitura_tutorial/blob/main/notebooks/01_introduction/Partitura_tutorial.ipynb)\n",
"\n"
"<a target=\"_blank\" href=\"https://colab.research.google.com/github/CPJKU/partitura_tutorial/blob/main/notebooks/01_introduction/Partitura_tutorial.ipynb\">\n",
" <img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/>\n",
"</a>\n"
]
},
{
Expand Down Expand Up @@ -60,6 +61,11 @@
"\n",
"if IN_COLAB:\n",
" # Install partitura\n",
" # Issues on Colab with newer versions of MIDO\n",
" # this install should be removed after the following\n",
" # pull request is accepted in MIDO\n",
" # https://github.com/mido/mido/pull/584\n",
" ! pip install mido==1.2.10\n",
" ! pip install partitura\n",
"else:\n",
" pass"
Expand Down Expand Up @@ -1517,7 +1523,7 @@
"provenance": []
},
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
Expand All @@ -1531,7 +1537,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.16"
"version": "3.7.10"
},
"vscode": {
"interpreter": {
Expand Down

0 comments on commit d2444ca

Please sign in to comment.