Skip to content

notebook has no attribute DEFAULT_STATIC_FILES_PATH #24

@cinephos

Description

@cinephos

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions