Skip to content

Commit

Permalink
Added troubleshooting section to lab-setup
Browse files Browse the repository at this point in the history
  • Loading branch information
anandology committed Jun 27, 2024
1 parent eee9dc1 commit 0ad38ff
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions docs/lab-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,3 +118,29 @@ Pass `-f` to follow the logs to see the live output. For, example:
```
$ sudo journalctl -u live-notes -n 50 -f
```

## Troubleshooting

### `%%load_problem` and `%%verify_problem` not working

This can happen when the juputer startup script is not properly installed for a user.

Sigma install startup script at `~/.ipython/profile_default/startup/startup.py`.
You can check if that file is missing by running the following command. If the file is missing, it will give an error.

```
$ sudo ls -l /home/jupyter-<username>/.ipython/profile_default/startup/startup.py
-rw-r--r-- 1 jupyter-xxx jupyter-xxx 42 Jun 18 18:39 /home/jupyter-xxx/.ipython/profile_default/startup/startup.py
```

If the file is missing, do the following to create it.

```
$ sudo su jupyter-<username>
$ cd
$ mkdir -p ~/.ipython/profile_default/startup
$ cd ~/.ipython/profile_default/startup
$ echo 'from sigma import magic; magic.register()' > startup.py
```

Restart the kernel of the notebook to load the magic commands.

0 comments on commit 0ad38ff

Please sign in to comment.