Peter,
This just what I need if I can get it to work. I am trying to run an Intel NCS 2 inside a Jupyter notebook and I need to configure the environment before Jupyter starts.
I tried adding a service before the jupyter.service starts.
[Unit]
Description=OpenVino config
Before=jupyter.service
[Service]
Type=oneshot
ExecStart=/opt/intel/openvino/bin/setupvars.sh
[Install]
WantedBy=basic.target
I can see the service runs before jupyter.service but I don’t see any effect.
I can successfully run the setupvars.sh in a terminal after Jupyter starts but I don’t think that I can alter the Notebook environment after the fact.
Do you know of a way that I can set environment variables for the Notebooks?
Thanks,
Ralph