Text output from the cells appears to be chopped off at the edge. Changing the cell width does not seem to help.
The command used here was:
jt -t oceans16 -fs 95 -tfs 11 -nfs 115 -cellw 100%

replace the current div.output_area with the following in the custom css file
div.output_area {
display: -webkit-box;
padding: 13px;
}
I think it's because of the cell output's folding button at the left that overlaps the text area. So in custom.css file, I changed min-width and width properties of div.out_prompt_overlay.prompt from 14.5ex to 11.5ex, and it worked. I also replaced all the occurrence throughout the file just in case of undiscovered inconsistency.
3q @solarqiang
I think it's because of the cell output's folding button at the left that overlaps the text area. So in custom.css file, I changed
min-widthandwidthproperties ofdiv.out_prompt_overlay.promptfrom14.5exto11.5ex, and it worked. I also replaced all the occurrence throughout the file just in case of undiscovered inconsistency.
These changes should be made in both:
div.out_prompt_overlay.prompt
div.out_prompt_overlay.prompt.hover
grep -n 'div.out_prompt_overlay.prompt' ~/.jupyter/custom/custom.css
1679:div.out_prompt_overlay.prompt {
1693:div.out_prompt_overlay.prompt:hover {
Does anyone know how to make this change permanent, so that changing the theme with e.g. jt -t [theme] doesn't overwrite this change to the custom.css file?
I think it's because of the cell output's folding button at the left that overlaps the text area. So in custom.css file, I changed
min-widthandwidthproperties ofdiv.out_prompt_overlay.promptfrom14.5exto11.5ex, and it worked. I also replaced all the occurrence throughout the file just in case of undiscovered inconsistency.
Thanks a lot, really help!!
Does anyone know how to make this change permanent, so that changing the theme with e.g. jt -t [theme] doesn't overwrite this change to the custom.css file?
You can hardcode width and min-width properties of div.out_prompt_overlay.prompt(:hover) in <path_to_python>/site-packages/jupyterthemes/layout/cells.less to any value you want. Just replace @out-prompt-min-width with any value you want. 11.5ex helped me.
I've also run into this issue.
hardcoding the values into cells.less doesn't seem to have an effect.
I replaced all "@out-prompt-min-width" and "@out-prompt-width" to 11.5ex. No change even after restarting JN.
div.output_area {
display: -webkit-box;
padding: 13px;
}
Thank you for your guide. But in my case, your code didn't be applied. After jupyter restart, custome.css file is revoked.
Does anyone know how to make this change permanent, so that changing the theme with e.g. jt -t [theme] doesn't overwrite this change to the custom.css file?
You can hardcode
widthandmin-widthproperties ofdiv.out_prompt_overlay.prompt(:hover)in<path_to_python>/site-packages/jupyterthemes/layout/cells.lessto any value you want. Just replace@out-prompt-min-widthwith any value you want.11.5exhelped me.
thank you for help me to find the file.
Is there any way to set this via command line arguments?
Does anyone know how to make this change permanent, so that changing the theme with e.g. jt -t [theme] doesn't overwrite this change to the custom.css file?
You can hardcode
widthandmin-widthproperties ofdiv.out_prompt_overlay.prompt(:hover)in<path_to_python>/site-packages/jupyterthemes/layout/cells.lessto any value you want. Just replace@out-prompt-min-widthwith any value you want.11.5exhelped me.
it worked, thank you
I found this is the easiest solution. Just paste it on top of your code to expand panels and fix the padding issue at once :)
from IPython.core.display import display, HTML
display(HTML("<style>.container { width:95% !important; } div.output_wrapper .output { padding-left: 14px; }</style>"))
Most helpful comment
I think it's because of the cell output's folding button at the left that overlaps the text area. So in custom.css file, I changed
min-widthandwidthproperties ofdiv.out_prompt_overlay.promptfrom14.5exto11.5ex, and it worked. I also replaced all the occurrence throughout the file just in case of undiscovered inconsistency.