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

Update Readme.md of labextension with proper install instructions #156

Open
DrBones opened this issue May 28, 2021 · 4 comments
Open

Update Readme.md of labextension with proper install instructions #156

DrBones opened this issue May 28, 2021 · 4 comments

Comments

@DrBones
Copy link

DrBones commented May 28, 2021

I am delighted to see that we can now use vpython in jupyterlab 3. However, I spend a few hours understanding why the given instruction "jupyter labextension install vpython" did not work and trying to debug a nonexsting issue. It is only when I found a closed issue where @jcoady explained how to install for jlab > 3 that I understood that I was installing the wrong thing.

Maybe the Readme.md can be updated to include the information from that issue that for different jlab versions the following commands need to be executed?

The vpython extension for JuptyerLab 3 and vpython version 7.6.1 can be installed with the command.
pip install jupyterlab-vpython==3.0.4
The vpython extension for JupyterLab 2 and vpython version 7.6.1 can be installed with the command.
jupyter labextension install vpython@2.0.1

Thanks in advance and also for this great visualization package
Cheers

@a3626a
Copy link

a3626a commented Jan 28, 2022

I think jupyterlab-vpython is a separate project by @jcoady
https://github.com/jcoady/jupyterlab_vpython
and proper installation instruction is there.

Here's another question: Why vpython-jupyter should be diverged into two separate repositories?

@mwcraig
Copy link
Contributor

mwcraig commented Jan 28, 2022

@DrBones -- you are correct, the installation instructions should be updated.

Took what you wrote and modified it just a touch -- if you have time to open a puol request to add this to the readme that would be great.


The vpython extension for JuptyerLab 3 and vpython version 7 can be installed with the command

pip install jupyterlab-vpython

or

conda install -c vpython jupyterlab-vpython

The vpython extension for JupyterLab 2 and vpython version 7 can be installed with the command below after installing nodejs:

jupyter labextension install vpython@2

@mwcraig
Copy link
Contributor

mwcraig commented Jan 28, 2022

@a3626a

I think jupyterlab-vpython is a separate project by @jcoady
https://github.com/jcoady/jupyterlab_vpython
and proper installation instruction is there.

Sort of... jupyterlab-vpython packages the jupyterlab extension for vpython.

Here's another question: Why vpython-jupyter should be diverged into two separate repositories?

Prior to Jupyter lab 3, vpython had a separate javascript package on npm that was required to allow vpython-jupyter in jupyter lab. That was a hassle because in addition to having a working python installation, you needed a working javascript via nodejs.

jupyter lab 3 allowed extensions to be installed from Python. The recommendation of the jupyter lab developers was to put that into a separate package, though there are projects that put it all into one repository.

One of the factors that led to the current split for vpython is that there are many users who do not use or want jupyter lab. If we roll it all into one package then we need to add jupyterlab as a required dependency.

Your feedback is helpful -- at some point we should perhaps combine them.

@jcoady
Copy link
Contributor

jcoady commented Oct 22, 2023

I added jupyterlab-vpython as a submodule in the labextension directory of the vpython-jupyter repository. See the following for a basic explanation of git submodules.

https://gist.github.com/gitaarik/8735255

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

4 participants