2

The following command will create a html file without the code:

jupyter nbconvert inspect.ipynb --no-input --no-prompt

Where the file is called inspect.ipynb and the output of the above is inspect.html.

I would like to know how to make the width of the cells in the output (not within jupyter lab) wider.

baxx
  • 3,956
  • 6
  • 37
  • 75

1 Answers1

4

Place this cell into your notebook:

# https://stackoverflow.com/questions/21971449/how-do-i-increase-the-cell-width-of-the-jupyter-ipython-notebook-in-my-browser
from IPython.core.display import display, HTML
display(HTML("<style>.container { width:100% !important; }</style>"))

And run you command:

jupyter nbconvert inspect.ipynb --no-input --no-prompt

Or maybe you can do it with custom.css, but I'm not sure. See the second answer in here How do I increase the cell width of the Jupyter/ipython notebook in my browser?

Károly Szabó
  • 1,131
  • 9
  • 17