1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

[Python] Is there a way to put cells of a notebook in raw mode, when using the notebook with...

Discussão em 'Python' iniciado por Stack, Setembro 14, 2024.

  1. Stack

    Stack Membro Participativo

    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. Thanks!

    Continue reading...

Compartilhe esta Página