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

Development logs #73

Open
BoPeng opened this issue Jun 2, 2024 · 0 comments
Open

Development logs #73

BoPeng opened this issue Jun 2, 2024 · 0 comments

Comments

@BoPeng
Copy link
Contributor

BoPeng commented Jun 2, 2024

Tutorial on Extension Development

  1. Create a conda environment (if not already exist) and sos dependencies

Install NodeJS, JupyterLab, etc. in a conda environment

conda create -n jupyterlab-ext --override-channels --strict-channel-priority -c conda-forge \
    -c nodefaults jupyterlab=4 nodejs=20 git copier=7 jinja2-time
conda activate jupyterlab-ext
pip install sos-notebook
python -m sos_notebook.install
  1. Git clone jupyterlab-sos

If developing codemirror-sos or transient-display-message, run yarn link in their respective directories, and run command like

yarn link codemirror-sos

to link their directories to node_modules.

  1. Build

install dependencies, also avoids an error with running pip install -ve . directly

yarn install

Build an install the extension

pip install -ve .

Create a symbolic link from JupyterLab to our directory.

jupyter labextension develop --overwrite .

Releae

rm -rf jupyterlab_sos dist lib
git co jupyterlab_sos/__init__.py

python -m build
python -m twine upload dist/*
@BoPeng BoPeng pinned this issue Jun 2, 2024
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