Snippets

Glotzer Group Plato Dependency Installation Tips

Updated by Matthew Spellings

File README.md Modified

  • Ignore whitespace
  • Hide word diff
 
 ```shell
 pip install matplotlib vispy plato-draw
+jupyter nbextension enable --py --sys-prefix vispy
 ```
 
 ### Possible additional steps for jupyter notebooks
Updated by Matthew Spellings

File README.md Modified

  • Ignore whitespace
  • Hide word diff
 source ~/env/plato/bin/activate
 ```
 
-Install jupyter and its dependencies, forcing it to be installed within the environment (an externally-installed jupyter may not have the kernel set up to work inside the virtual environment, for example); note that vispy 0.5 doesn't work with ipywidgets 7 or greater (*if you need to use ipywidgets 7 for some reason, installing a prerelease vispy 0.6 may work*):
+Install jupyter and its dependencies, forcing it to be installed within the environment (an externally-installed jupyter may not have the kernel set up to work inside the virtual environment, for example):
 
 ```shell
-pip install -I jupyter ipywidgets==6.0.1
+pip install -I jupyter ipywidgets
 jupyter nbextension enable --py --sys-prefix widgetsnbextension
 ```
 
Updated by Matthew Spellings

File README.md Modified

  • Ignore whitespace
  • Hide word diff
 source ~/env/plato/bin/activate
 ```
 
-Install jupyter and its dependencies, forcing it to be installed within the environment (an externally-installed jupyter may not have the kernel set up to work inside the virtual environment, for example); note that vispy 0.5.* doesn't work with ipywidgets 7 or greater (*if you need to use ipywidgets 7 for some reason, installing a prerelease vispy 0.6 may work*):
+Install jupyter and its dependencies, forcing it to be installed within the environment (an externally-installed jupyter may not have the kernel set up to work inside the virtual environment, for example); note that vispy 0.5 doesn't work with ipywidgets 7 or greater (*if you need to use ipywidgets 7 for some reason, installing a prerelease vispy 0.6 may work*):
 
 ```shell
 pip install -I jupyter ipywidgets==6.0.1
Updated by Matthew Spellings

File README.md Modified

  • Ignore whitespace
  • Hide word diff
 source ~/env/plato/bin/activate
 ```
 
-Install jupyter and its dependencies, forcing it to be installed within the environment (an externally-installed jupyter may not have the kernel set up to work inside the virtual environment, for example); note that vispy doesn't currently work with ipywidgets 7 or greater:
+Install jupyter and its dependencies, forcing it to be installed within the environment (an externally-installed jupyter may not have the kernel set up to work inside the virtual environment, for example); note that vispy 0.5.* doesn't work with ipywidgets 7 or greater (*if you need to use ipywidgets 7 for some reason, installing a prerelease vispy 0.6 may work*):
 
 ```shell
 pip install -I jupyter ipywidgets==6.0.1
Updated by Matthew Spellings

File README.md Modified

  • Ignore whitespace
  • Hide word diff
 Install jupyter and its dependencies, forcing it to be installed within the environment (an externally-installed jupyter may not have the kernel set up to work inside the virtual environment, for example); note that vispy doesn't currently work with ipywidgets 7 or greater:
 
 ```shell
-pip install -I jupyter ipywidgets==6.0.0
+pip install -I jupyter ipywidgets==6.0.1
 jupyter nbextension enable --py --sys-prefix widgetsnbextension
 ```
 
 import importlib
 for name in ['ipywidgets', 'widgetsnbextension', 'vispy', 'plato']:
     m = importlib.import_module(name)
-    print('{}: {}'.format(name, m.__file__))
+    print('{}: {}, {}'.format(name, m.__file__, m.__version__))
 ```
 
 If a python executable that is not the one inside the virtualenv is found, you may need to remove an old kernel specification:
  1. 1
  2. 2
  3. 3
HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.