在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:fekad/jupyter-jsmol开源软件地址:https://github.com/fekad/jupyter-jsmol开源编程语言:JavaScript 99.9%开源软件介绍:jupyter-jsmolThis is JSmol viewer widget which can be used in Jupyter Notebooks and JupyterLab InstallationYou can install using pip install jupyter_jsmol Or if you use jupyterlab: pip install jupyter_jsmol
jupyter labextension install @jupyter-widgets/jupyterlab-manager If you are using Jupyter Notebook 5.2 or earlier, you may also need to enable the nbextension: jupyter nbextension enable --py [--sys-prefix|--user|--system] jupyter_jsmol Development InstallationCreate a dev environment: conda create -n jupyter-jsmol-dev -c conda-forge python pip nodejs yarn jupyter jupyterlab ipywidgets jupyter-packaging==0.7.9 ase pymatgen
conda activate jupyter-jsmol-dev Install the python. This will also build the TS package. # First install the python package. This will also build the JS packages.
pip install -e ".[test, examples]"
# Run the python tests. This should not give you a few successful example tests
py.test When developing your extensions, you need to manually enable your extensions with the notebook / lab frontend. For lab, this is done by the command:
For classic notebook, you can run:
Note that the How to see your changesJavaScript:If you use JupyterLab to develop then you can watch the source directory and run JupyterLab at the same time in different terminals to watch for changes in the extension's source and automatically rebuild the widget. # Watch the source directory in one terminal, automatically rebuilding when needed
yarn run watch
# Run JupyterLab in another terminal
jupyter lab After a change wait for the build to finish and then refresh your browser and the changes should take effect. Python:If you make a change to the python code then you will need to restart the notebook kernel to have it take effect. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论