0

I have got a notebook, but the images are not shown in jupyter-lab.

I was told the output becomes visible, when trusting a notebook. Indeed, works in Jupyter as explained in Jupyter notebook not trusted.

However, in my jupyter-lab there is not such a trust button.

I found this explanation: https://www.legendu.net/en/blog/trust-a-jupyterlab-notebook. But I don't have the palette icon.

So how can I trust the notebook?

2 Answers2

1

Command palette is now "modal" by default meaning that it shows up as an overlay.

To open it use Ctrl + Shift + C (or Command + Shift + C on Mac) as described in documentation JupyterLab Commands documentation, and then proceed typing "trust" to find and select the "Trust Notebook" option:

enter image description here

You should see the indicator in the statusbar turn to a shield with a checkmark indicating trust status (enter image description here). You can hover over the shield for extra information. There is some additional documentation about the trust mechanism in the JupyterLab Notebooks documentation (at the very end of the page as of writing).

krassowski
  • 13,598
  • 4
  • 60
  • 92
0

Ok, continuing with https://www.legendu.net/en/blog/trust-a-jupyterlab-notebook one can also get a "command line" by opening a terminal, and go to the corresponding directory (ls, cd) and then execute

jupyter trust *.ipynb

Finally, reopen the notebook.