Advertisement
shinemic

JupyterLabLauncher

Jul 26th, 2024
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.26 KB | None | 0 0
  1. from uuid import uuid4
  2. from jupyterlab.labapp import LabApp
  3.  
  4. app = LabApp()
  5.  
  6. IP = "0.0.0.0"
  7. PORT = "12345"
  8. TOKEN = uuid4()
  9.  
  10. print(TOKEN)
  11.  
  12.  
  13. app.launch_instance(
  14.     [
  15.         "--ip", IP, "--port", PORT,
  16.         f"--NotebookApp.token={TOKEN}",
  17.     ]
  18. )
  19.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement