HLCC Documentation 3.0.1
Loading...
Searching...
No Matches
jupyterrunner Directory Reference

Directories

 jupyterrunner
 
 stellarium_jupyter_runner
 
 utils
 
 widgets
 

Files

 wscript
 

Detailed Description

The GUI provides an interface to HLCC-Stellarium interaction.

Jira: ETCS-1284

Intoduction

This module provides two GUIs:

hlccStellariumGui

The hlccStellariumGui provides graphical interface

The IP address of the host where Stellarium is running can be set at the top of the GUI. This is (currently) defaulted to local host.

The GUI is divided into three main sections, each section allows to run and stop/abort the corresponding action via buttons. When the action is started, the underlying mechanism executes the corresponding hlcc jupyterrunner via papermill tool. The output of this tool is displayed in the white output area.

For the output display one can select detailed view, by checking the corresponding checkbox. In this case all the output of the notebook is displayed, otherwise the progress of the notebook is displayed in percentage. (This is a feature of papermill)

The status of the execution of the notebook is displayed above the control buttons.

The follow action is a continues loop, it runs until the user stops it or failed. During following action it is allowed to select another object via stellarium and preset to the object. The telescope will automatically follow the new object. (feature of hlcc/telif)

Any running action is stopped/aborted when the user quites the GUI.

hlccJupyterRunnerGui

The hlccJupyterRunnerGui is a more generic tool, at its current state it allows the user to run any of the hlcc jupyter notebooks.

When Stellarium notebookes are selected the IP address of the Stellarium host can be set.

The other notebooks are run with their default settings only.

This GUI allows to run only one notebook at a time, but you can start up more instances.

Prerequisites

Cii services are running

cii-services start all

Stellarium is running

Stellarium is set according HLLCC UM and running. On dev platform use the following option when starting it up:

stellarium --low-graphics

HLCC/Tel is running

On dev platform start HLCC/Telescope Simulation via GUI:

hlcctelsimui

Navigate to tab SeqTool tab (Top right section) , end execute the sequences:

Start HLCC Stellarium GUI from commandline

hlccStellariumGui

or for the generic tool:

hlccJupyterRunnerGui --stellarium

Start HLCC Stellarium GUI from hlcctelsimui menu

The tool hlccStellariumGui can be also started up from the menu of hlcctelsimui. Launch/Stellarium Interface

Generetad files

The papermill tool generates notebooks with the actual parameters used, these files are stored with the name original notebook extended width timestamp under the directory: /tmp/jupyter_notebooks/

E.g. Output Notebook: /tmp/jupyter_notebooks/StellariumConfig_20250630_083310.ipynb

Notes

Jupyter Note book

cd <directory_notebooks>
jupyter notebook

check http://localhost:8888/

papermill on command line

papermill input.ipynb output.ipynb -p param1 value1 -p param2 value2
papermill /home_local/eltdev/INTROOT/jupyter_notebooks/StellariumConfig.ipynb /tmp/jupyter_notebooks/StellariumConfig_20250616_151810.ipynb -p ip 127.0.0.1

python notebook libraries

import nbformat
import nbclient

nomad startup of telescope

nomad job run /elt/hlcc/share/nomad/hlcc.nomad.hcl

menu of hlcctelsimui

The Launch menu item is configured via (ETCS-1255): hlcc/software/telsimui/resource/config/hlcctelsimui/tools.json

improvement options for hlccJupyterRunnerGui