-
Notifications
You must be signed in to change notification settings - Fork 384
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
Jupyter notebook - items don't show() #260
Comments
Do you have MuseScore installed? |
Yes - the following config item - https://github.com/psychemedia/showntell/blob/music/apt.txt - installs:
Py packages that are installed listed here: https://github.com/psychemedia/showntell/blob/music/requirements.txt |
Sorry, but I can't diagnose another app, only a music21 problem. Does .write() create the file normally? |
If I run:
a file gets written to If I run:
the image is displayed. If I run:
I get the
Could this be an issue with path settings? I currently have to set the following in the notebook to get the
Could it be that the environment setting is not being picked up by the A worked example is available on binderhub - https://beta.mybinder.org/v2/gh/psychemedia/showntell/music - in the notebook |
Ah, this is a linux setup -- we do not directly support Linux or other OSes except Mac and Windows. Please see the installation instructions which are quite clear on this point. Sorry, but there's not time on the development staff. |
On that point, is there a reference Dockerfile anywhere that acts as a reference build and that can be used to demo an interactive My use case is that I want to demo, and maybe use , I can imagine two possible reference container builds that would help with this:
I had a quick look on Dockerhub, but one image I found on there seems to be broken. |
There isn't a core docker for music21 and it's not something the development team is likely to have time to build or maintain in the near future but definitely it'd be helpful for some. Because my time is limited (many projects plus teaching full time and service) I need to restrict my installation support time to pure vanilla installs of windows and Mac and let power users deal with other configurations on their own. |
I'm similarly stretched ito time, and hampered by zero Linux admin skills, but will take a look as and when I get a chance and see if I can find, or pull together, a Dockerfile that means the notebook workaround can be avoided. |
The same problem happens with me under Windows 10. It looks definitely like a path issue: first, it gave an error because MuseScore path had a space within, when I reinstalled it with a spaceless path the SubConverterFileIOException error appeared. Everything is working fine under python outside jupyter. Update: the problems seems rather to lie in the default format for show: if I write c.show() I get the error, while c.show('musicxml') is fine. However, 'musicxml' is the setting for 'showFormat' and 'writeFormat' (and it works fine in python), so the problems seems to be in jupyter not getting the right value. |
Hello @lancioni I tried your method, but my notebook on Google Colab doesn't show anything. It successfully removed the exception, however. |
Same problem. :( |
A few things:
See working colab: Reopening so we can get points 2 and 3 as defaults for v7. |
Trying to use
%load_ext music21.ipython21
in a Jupyter notebook with a.show()
method, I get the following error:The following workaround does let me display an image but it's clunky...
Example set-up from https://github.com/psychemedia/showntell/tree/music running under BinderHub: https://beta.mybinder.org/v2/gh/psychemedia/showntell/music
The text was updated successfully, but these errors were encountered: