change karabo_activate_path and ipcluster_path according to where you installed karabo
Create your own notebook
========================
1. Create a new notebook or re-arrange an existing on following the guidelines explained here: https://in.xfel.eu/readthedocs/docs/european-xfel-offline-calibration/en/latest/workflow.html
2. register you notebook:
add an entry to xfel_calibrate/notebooks.py
Note: use all capital letters for DETECTOR and TYPE
"sensor_size = [10, 30] # defining the picture size\n",
"random_seed = 2345 # random seed for filling of fake data array. Change it to produce different results.\n",
"runs = 500 # how may iterations to fill histograms\n",
"cluster_profile = \"tutorial\" "
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"First include what we need and set up the cluster profile. Everything that has a written response ina cell will show up in the report, e.g. prints but also return values or errors."
random_seed=2345# random seed for filling of fake data array. Change it to produce different results.
runs=500# how may iterations to fill histograms
cluster_profile="tutorial"
```
%% Cell type:markdown id: tags:
First include what we need and set up the cluster profile. Everything that has a written response ina cell will show up in the report, e.g. prints but also return values or errors.
%% Cell type:code id: tags:
``` python
importmatplotlib
%matplotlibinline
importnumpyasnp
importmatplotlib.pyplotasplt
fromipyparallelimportClient
print("Connecting to profile {}".format(cluster_profile))