install labextensions via conda?
- Dominant language
- Jupyter Notebook
- Stars
- 2.9k
- Forks
- 383
- PR merge metrics
- No merged PRs in 30d
Description
Simon Biggs @SimonBiggs 03:45
Someone will likely provide a better answer but the jupyter-matplotlib package has an interesting method. It installs the npm packed .tgz as data within setup.py. I copied that method for my extension for pip, but I haven't tried it with conda, I imagine it should "just work".
Key bit is here in jupyter-matplotlib https://github.com/matplotlib/jupyter-matplotlib/blob/255929b3662ea4850305f2d9f757c95bd1a85b87/setup.py#L74
I used the same method in my own extension and it works a treat for pip. Running pip install scriptedforms and nothing else results in the tgz file being found by jupyterlab and rebuilding next time the use boots jlab.
https://github.com/SimonBiggs/scriptedforms/blob/61d884f331abc3f7e329dade94191aa2d8c74f23/setup.py#L22
Simon Biggs @SimonBiggs 03:50
To create the .tgz file I just call yarn pack like so https://github.com/SimonBiggs/scriptedforms/blob/61d884f331abc3f7e329dade94191aa2d8c74f23/scriptedforms/package.json#L24
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.