CDAT / jupyter-vcdat

A Jupyter Lab extension based on vCDAT.
BSD 3-Clause "New" or "Revised" License
6 stars 5 forks source link

Disable sliders #154

Closed forsyth2 closed 4 years ago

forsyth2 commented 4 years ago

Testing for disabling sliders (https://github.com/CDAT/vcs/pull/428)

To run:

conda create -n <env_name> -c cdat/label/nightly -c conda-forge jupyterlab jupyterhub "python=3.7" nodejs vcs pip
python -m pip install sidecar
conda activate <env_name>
jupyter labextension install @jupyter-widgets/jupyterlab-manager
jupyter labextension install @jupyter-widgets/jupyterlab-sidecar
jupyter labextension install jupyterlab-tutorial-extension
jupyter labextension install @jupyterlab/hub-extension
npm install
jupyter lab build
conda install -c conda-forge ipywidgets

# To install vcs changes:
cd ../vcs; python setup.py install; cd -

To run tests:
# Close out of other Jupyter Lab instances
jupyter labextension install .
jupyter lab
npx task test -c test_export_plot_html_via_button &> out.txt
downiec commented 4 years ago

Yes, you'll need to have your PR from a branch in the main repo like vcs. As for the test_export_plot_html_via_button function, I am not sure why it works after failing the first time. It could be something with your assert trying to open the file before it has been closed or saved? I'm not sure.

forsyth2 commented 4 years ago

Closing in favor of #155, which is from a branch in the main repo, not my fork.