Jupyter notebooks are a great tool, especially for explaining and testing different things. So I decided it would be great to show how to use the uws-client as a library, as explained in this previous post: uws-client for python scripting, in an interactive python notebook. And here you go: the first CosmoSim UWS notebook is finished now!
You can download the notebook from GitHub:
Setup your own virtual environment using
venv, install the requirements and start the notebook server session with
Then open cosmosim-uws-intro.ipynb, which gives a basic introduction to job handling using a simple example. Use
Shift+Enter to run each command.
Here’s a screenshot of the final figures:
Jupyter notebooks with more elaborate examples may follow in the future.