How to change color in markdown cells ipython/jupyter notebook?

You can simply use raw html tags like foo <font color=”red”>bar</font> foo Be aware that this will not survive a conversion of the notebook to latex. As there are some complaints about the deprecation of the proposed solution. They are totally valid and Scott has already answered the question with a more recent, i.e. CSS … Read more

How to show PIL Image in ipython notebook

Updated 2021/11/17 When using PIL/Pillow, Jupyter Notebooks now have a display built-in that will show the image directly, with no extra fuss. display(pil_im) Jupyter will also show the image if it is simply the last line in a cell (this has changed since the original post). Thanks to answers from @Dean and @Prabhat for pointing … Read more

How to hide code from cells in ipython notebook visualized with nbviewer?

from IPython.display import HTML HTML(”'<script> code_show=true; function code_toggle() { if (code_show){ $(‘div.input’).hide(); } else { $(‘div.input’).show(); } code_show = !code_show } $( document ).ready(code_toggle); </script> <form action=”javascript:code_toggle()”><input type=”submit” value=”Click here to toggle on/off the raw code.”></form>”’)