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 python - How do I increase the cell width of the Jupyter/ipython notebook in my browser? - Stack Overflow)
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
rdeits
2
You can render HTML content in Jupyter with display
and the "text/html"
MIME type:
display("text/html", "<script>alert('hello')</script>")
1 Like
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