Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hide ipython notebook prompt

How can I hide the "In [*]:" prompts on the left side of input cells in ipython notebooks, as shown below? enter image description here

Edit: The question asked in ipython notebook nbconvert - how to remove red 'out[N]' text in top left hand corner of cell output? is not the same as the question that is asked here. Here I want to hide the cell numbers in the browser itself, rather than in the output from nbconvert. However, one of the responses in that question does solve my issue.

like image 518
deepak Avatar asked Sep 02 '15 16:09

deepak


1 Answers

This solved my problem: https://stackoverflow.com/a/30234937/805357 .Putting the following code in a cell hides the cell numbers.

%%HTML
<style>
div.prompt {display:none}
</style>
like image 103
deepak Avatar answered Sep 25 '22 08:09

deepak