Reputation: 2075
How can I hide the "In [*]:" prompts on the left side of input cells in ipython notebooks, as shown below?
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.
Upvotes: 6
Views: 2283
Reputation: 2075
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>
Upvotes: 10