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

Lab extension directories #155

Open
jasongrout opened this issue Jan 4, 2021 · 0 comments
Open

Lab extension directories #155

jasongrout opened this issue Jan 4, 2021 · 0 comments

Comments

@jasongrout
Copy link

In your code, you have

# TODO: Why is 'jupyter labextension build' putting the files under
# static/lab/static instead of static/lab ?

The static assets are in the static subdirectory so the top directory can have other files, such as the install.json file for uninstall instructions, etc.

You could probably replace the lines

(f"share/jupyter/labextensions/{jsname}", f"{name}/static/lab", "*.*"),
(
f"share/jupyter/labextensions/{jsname}/static",
f"{name}/static/lab/static",
"*.*",
),
with ** like the cookiecutter: https://github.com/jupyterlab/extension-cookiecutter-ts/blob/master/%7B%7Bcookiecutter.python_name%7D%7D/setup.py#L38-L39

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