From this great answer, I'm able to adjust the width of cells in JupyterLab.
The result would be perfect if we can center the cells. Could you please elaborate on how to do do?
From this great answer, I'm able to adjust the width of cells in JupyterLab.
The result would be perfect if we can center the cells. Could you please elaborate on how to do do?
Adding margin: 0 auto
works as for JupyterLab 3.0:
from IPython.core.display import display, HTML
display(HTML("<style>.jp-Cell { width: 60% !important; margin: 0 auto; }</style>"))
But I believe that questions like that might be counter productive as we already have the CSS positioning perfectly explained in: How to horizontally center an element.