Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

If you change psana versions at a later time, the package you installed previously with pip may not work anymore.  If so you can uninstall the old version with "pip uninstall rayopt" and install it again using the new version of psana.

Making Your Own Conda

...

Environment Visible In Jupyter

If you build your own conda environment - or want to use one of your colleagues one -  which contains a python jupyter kernel (package ipykernel) you can make it visible to the jupyter hub by creating a kernelspec files. For a user the spec files are located in ~/.local/share/jupyter/kernels/ with a sub-directory for each spec. The kernel.json in a spec directory contains the settings. For an example see  ~wilko/.local/share/jupyter/kernels/example/.

...

The --name option is the name for the kernelspec - the directory that will be created in ~/.local/share/jupyter/kernels/. There are a few more install options - ipython kernel install -h - the most useful one is --display-name  that allows to set the name shown in Jupyter. Instead of using the command above one can also create the directory and the kernel.json file by hand. You

Virtualenv

NOTE: the virtualenv method is not compatible with our anaconda-based psana, but we leave the documentation here in case it is useful at some point.

...