jupyter-widgets/sidecar
¶jupyter-widgets/jupyterlab-sidecar
is a really cool widget that creates a rightmost drawer in jupyter with the display underneath.
from IPython.display import display, HTML, IFrame
from sidecar import Sidecar
def show_iframe(url):
sc = Sidecar(title=f"{url} Gitter")
with sc: display(IFrame(url, "100%", "100%"))
def show_gitter(name): show_iframe(f"https://gitter.im/{name}/Lobby")
def _widget_sidecar_demonstation(): show_gitter('atl-jugheads')
Use the HTML flexbox shorthand with the sidecar.
def _string_node_transformer():
%reload_ext deathbeds.__HTML_Flexbox
with Sidecar():
"""
- a
- a
"""