Last answered:

07 Apr 2023

Posted on:

14 Jul 2022

0

How to add comments on jupyter

I'm wondering if we can use the markdown syntax to add comments instead of the hash sign or we can't !
Thanks

1 answers ( 0 marked as helpful)
Posted on:

07 Apr 2023

0

To add any content in Markdown you'd first need to convert the cell type to 'markdown' from 'code'. Once done only then you can add any of the markdown content you want in the cell. So, no in the cell with python code, you will have to rely on '#'. I suggest keeping comments on code and code separate, this way you can utilize Markdown to its fullest. 

365datascience have good course for Jupyter I recommend giving it a go first. It's short and sweet.

I have also created one Markdown short guide for my reference: if you want you can also have a look and keep it.
[Markdown for your Jupyter Notebook – Kamesh Vishwakarma (kameshji.com)]

or you can also refer to https://medium.com/analytics-vidhya/the-ultimate-markdown-guide-for-jupyter-notebook-d5e5abf728fd

Hope it helps.

Submit an answer