Widen display in IJulia/Jupyter notebook

Hi all,

When using Python in a Jupyter notebook, it’s possible to widen the display using

from IPython.core.display import display, HTML
display(HTML("<style>.container { width:100% !important; }</style>"))

(from https://stackoverflow.com/a/34058270/880987)

Is there a similar trick to accomplish the same thing using IJulia/Jupyter?

(The same StackOverflow post above has a method to change it for all notebooks, but I prefer doing this on a per-notebook basis.)

Thanks,
Kevin

You can render HTML content in Jupyter with display and the "text/html" MIME type:

display("text/html", "<script>alert('hello')</script>")
1 Like

Decrease margins of IJulia in Jupyter notebook? useful?

Thanks, @rdeits, that worked perfectly with the above code!

display("text/html", "<style>.container { width:100% !important; }</style>")

Cheers,
Kevin

3 Likes

And @cormullion, sorry, I searched and didn’t find that answer. Whoops! Thank you!

1 Like