Welcome to DOFBOT-Ultra repository
2. Manage JupyterLab services
Manage JupyterLab Services
In the factory image, the JupyterLab service starts automatically at boot. Under normal circumstances, no management is needed. Just keep it set to auto-start.
Stop the Service
Stop the service:
xxxxxxxxxxsudo systemctl stop jupyterlab.service
Permanently disable the service:
xxxxxxxxxxsudo systemctl disable jupyterlab.service
Check the service status:
xxxxxxxxxxsudo systemctl status jupyterlab.service
Start the Service
Start the service:
xxxxxxxxxxsudo systemctl start jupyterlab.service
Restart the service:
xxxxxxxxxxsudo systemctl restart jupyterlab.service
Enable the service to auto-start at boot:
sudo systemctl enable jupyterlab.service
Raspberry Pi Version
Stop service
xxxxxxxxxxdocker exec dofbot_ultra jupyter server stop 8888Verification after stopping
xxxxxxxxxxdocker exec dofbot_ultra jupyter lab list # It should display "No servers are running".docker exec dofbot_ultra ss -tlnp | grep 8888 # There should be no output.
Starting the Service
Method 1: Launching independently within the container
xxxxxxxxxxdocker exec -d dofbot_ultra jupyter lab --ip=0.0.0.0 --port=8888 --no-browser --allow-root
docker exec -d= execute in the background. The arguments match the original entrypoint command;root_diris determined by the configuration file inside the container, so no additional specification is needed. If you also want to write logs to/var/log/jupyter.log, use this equivalent form:xxxxxxxxxxdocker exec -d dofbot_ultra bash -c 'jupyter lab --ip=0.0.0.0 --port=8888 --no-browser --allow-root >>/var/log/jupyter.log 2>&1'
Method 2: Restart the entire container
xxxxxxxxxxdocker restart dofbot_ultraConsequence: The robotic arm will perform a return-to-home movement, and the app connection will be interrupted for approximately 1 minute. Use this only when the unit's overall status is abnormal.
Post-startup verification + Retrieve access URL
xxxxxxxxxxdocker exec dofbot_ultra jupyter lab listSimply replace the hostname in the output URL with the Raspberry Pi's IP address to access it via a browser on your local network:
xxxxxxxxxxhttp://<Raspberry Pi IP address>:8888/lab?token=<token from the output>