This tutorial gives a short overview how to create your own Nomad Beaker Notebooks and comply to the current cooperate design and branding of the Nomad Laboratory group.
Setup
Start your project in a separate nomad-lab repository prefixed by the string notebook-. Please choose a meaningful lower-case name, hyphenate separated words. You may use a slugify generator (https://blog.tersmitten.nl/slugify) to comply to the format. A good repository name for example is "notebook-periodic-table" and a bad one is "notebook-pt".
Structure
Structure your repository as seen in the following, where notebook-nomad-template is the name of the imaginary Beaker notebook we want to create:
notebook-nomad-template
├── beaker-notebooks
│ └── notebook-nomad-template.bkr
├── example-data
│ └── notebook-nomad-template
├── LICENSE
├── README.md
└── requirements.txt
For your project, there already exists a default Nomad Beaker Notebook Template (download), which will be updated regularly. Thus, you don't have to start from scratch and you can start coding. You only have to replace all the place-holders given in the notebook.
There, also exists a pre-made LICENSE
file (download) you can directly copy into your project. By default, we use the Apache License 2.0 license. A nice overview of the licence conditions gives https://choosealicense.com/licenses/apache-2.0/ .
The requirements.txt
is there if you need special python libraries for your notebook, i.e., numpy
, that can be installed via pip (https://pypi.python.org/pypi). Please list the needed libraries as a plain text file with one name per line.
If you need additional files, please store them in the example-data/notebook-nomad-template
folder.
Release
Once you have finished your notebook and it was reviewed by your supervisors or group members, you are ready to put all your files into the [Nomad Analytics Toolkit Tutorials repository] (https://gitlab.rzg.mpg.de/nomad-lab/analytics-toolkit-tutorials). Just copy your example-data/notebook-nomad-template
folder into the repository's example-data
folder and your notebook into the repository's beaker-notebook
folder. You may adjust your paths in your notebook, do a commit, and that's it!