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

notebook has no attribute DEFAULT_STATIC_FILES_PATH #24

Open
cinephos opened this issue May 2, 2023 · 0 comments
Open

notebook has no attribute DEFAULT_STATIC_FILES_PATH #24

cinephos opened this issue May 2, 2023 · 0 comments

Comments

@cinephos
Copy link

cinephos commented May 2, 2023

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!

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

No branches or pull requests

1 participant