I already increase the width of the jupyter notebook's cell on my browser with this
.container {
width:100% !important;
}
However, I would also like to narrow the left part of the text cell.
For the above picture I would like shrink the part div.prompt.input_prompt
.
Is it possible to do it with just css? how?
Also, if this can be done, how to empty left part automatically for all non-code cells?
The prompt width is set in notebook/static/notebook/less/cell.less#L80 , so you could do something like:
/* Narrow the prompts */
.prompt {
min-width: 10ex;
}
/* Hide prompts altogether for non-conda cells */
.cell:not(.code_cell) .prompt {
display: none;
}
from IPython.core.display import display, HTML display(HTML("<style>.prompt_container{display:none !important}</style>"))
enter code here
it will make left part of the all cell hide and give more space to work Example Here:- enter image description here
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.