Widen display in IJulia/Jupyter notebook

question

#1

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


#2

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

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

#3

Decrease margins of IJulia in Jupyter notebook? useful?


#4

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

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

Cheers,
Kevin


#5

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