The easiest way is to convert the cell from code to raw.
When you first login to JupyterLab you get a message “Would you like to receive official Jupyter news?”. This is caused by an “announcement extension”. You can disable this message by activating the Python virtual environment and disable the extension.
source playbook/bin/activate
jupyter labextension disable "@jupyterlab/apputils-extension:announcements"
Yes you can. But unfortunate the setup with a self-signed certificate and a password protected JupyterLab does not play nice with Visual Studio Code (at least on OSX). If you disable SSL and disable password access you can add the notebook server as a remote kernel, edit the notebooks remotely and have them executed on your server. Please provide an update to this documentation if you have a more secure method of editing (remote) notebooks with Visual Studio Code.
You can export Jupyter notebooks in other formats, such as PDF, LaTeX or HTML. This export can also include the output cells, giving you an easy way to create a shareable report from your investigation.
Note that there are some additional packages that need to be installed, such as jupyter-nbconvert
and texlive-xetex
. Guidance can be found here.
Yes. To recover a deleted cell, right-click on the cell that became active after deletion, and select Redo Cell Operation or use the Shift + Z / CMD + Z keyboard shortcut.
Certainly!
The JupyterLab Notebook has two different keyboard input modes.
There is more at Jupyterlab keyboard shortcuts.
Change c.ServerApp.port
and restart the service.
Change c.ServerApp.ip
and set it to the desired IP, or to 127.0.0.1
for localhost only.
Run the set_notebook_password.py
tool. This will add a new line with ServerApp.password
to the configuration file. You can safely remove the previous ServerApp.password
lines from the config file.
python tools/set_notebook_password.py playbook/config/misp-playbook-jupyter.py
This is only a warning, not an error message. No fix is necessary.
For JupyterLab you have to enable the Python virtual environment, install the library and then restart the JupyterLab service.
source playbook/bin/activate
pip install <mylibrary>
sudo systemctl restart misp-playbook-jupyter.service
The Python requirements are in the requirements.txt
file. You need to update your Python virtual environment. This can be easily done with (adjust the path to your installation details)
playbooks/bin/pip install -r documentation/requirements.txt --upgrade
You do not need to restart Jupyter notebook.
If your GitHub repository is set to private then the images will not show up in your uploaded playbooks.
In order to display the images when browsing the playbooks via GitHub the repository needs to be put publicly accessible.
Note that on initial tests, this is not the case with GitLab. A private repository in GitLab can display the images.