I had problem installing csoundmagics to my Ubuntu 22.04 system.
The lines
# Copy csound mode in codemirror
dest = os.path.join(notebook.DEFAULT_STATIC_FILES_PATH, "components", "codemirror", "mode", "csound")
if not os.path.exists(dest):
os.mkdir(dest)
shutil.copy("csound.js", dest)
created an error because notebook has no attribute DEFAULT_STATIC_FILES_PATH
I manually found the correct location to copy csound.js which proved to be:
.../site-packages/nbclassic/static/components/codemirror/mode and create manually the directory csound in order to copy csound.js file.
In the end, I managed to install and run csoundmagics!
I had problem installing csoundmagics to my Ubuntu 22.04 system.
The lines
created an error because
notebookhas no attributeDEFAULT_STATIC_FILES_PATHI manually found the correct location to copy
csound.jswhich proved to be:.../site-packages/nbclassic/static/components/codemirror/modeand create manually the directorycsoundin order to copycsound.jsfile.In the end, I managed to install and run csoundmagics!