Skip to content

Instantly share code, notes, and snippets.

@gtirloni
Last active May 6, 2023 14:18
Show Gist options
  • Select an option

  • Save gtirloni/d4c3ffcce107b6ee79e2b50c0e0e8683 to your computer and use it in GitHub Desktop.

Select an option

Save gtirloni/d4c3ffcce107b6ee79e2b50c0e0e8683 to your computer and use it in GitHub Desktop.

Revisions

  1. gtirloni revised this gist May 6, 2023. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions x-README.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,6 @@
    ```
    $ vi $HOME/.config/systemd/user/jupyter-lab.service
    $ systemctl --user daemon-reload
    $ systemctl --user enable jupyter-lab
    $ systemctl --user start jupyter-lab
    ```
  2. gtirloni revised this gist May 6, 2023. 1 changed file with 4 additions and 0 deletions.
    4 changes: 4 additions & 0 deletions x-README.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    $ vi $HOME/.config/systemd/user/jupyter-lab.service
    $ systemctl --user daemon-reload
    $ systemctl --user enable jupyter-lab
    $ systemctl --user start jupyter-lab
  3. gtirloni created this gist May 6, 2023.
    13 changes: 13 additions & 0 deletions jupyter-lab.service
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    [Unit]
    Description=JupyterLab
    After=network-online.target
    Wants=network-online.target

    [Service]
    ExecStart=/usr/bin/jupyter lab --no-browser
    Restart=on-failure
    RestartSec=7
    RestartPreventExitStatus=3

    [Install]
    WantedBy=default.target