Is there a way to put cells of a notebook in raw mode, when using the notebook with VSCode?
14:31 14 Sep 2024

I'm writing a notebook in VS Code for my experiments and have some cells in it that I don't need to run every time, I would like a way to mark them as hidden or inactive.

The options I found are:

  1. Put them in raw mode - VS Code doesn't seem to have that option available, I only see code and markdown.

  2. Use the directive %%script false --no-raise-error - this apparently works in Jupyter notebooks, but it doesn't work in VS Code, it fails saying there is no program called false.

I know that commenting the code out and adding flags in the code are options, but they're not as convenient as the above ones. Please let me know if there is anything else I can try.

python visual-studio-code jupyter-notebook