try:
import piplite
await piplite.install(['ipywidgets==7.7.0', 'ipyflex', 'ipyleaflet'])
except:
pass
import ipywidgets
ipywidgets.IntSlider()
IntSlider(value=0)
from ipyleaflet import Map, basemaps, basemap_to_tiles
m = Map(
basemap=basemap_to_tiles(basemaps.NASAGIBS.ModisTerraTrueColorCR, "2017-04-08"),
center=(52.204793, 360.121558),
zoom=4
)
m
Map(center=[52.204793, 360.121558], controls=(ZoomControl(options=['position', 'zoom_in_text', 'zoom_in_title'…
ipywidgets.IntSlider()
IntSlider(value=0)
import ipyflex
widgets = {
'Widget 1' : ipywidgets.HTML('<h1>Widget 1</h1>'),
'Widget 2' : ipywidgets.HTML('<h1>Widget 2</h1>'),
'Widget 3' : ipywidgets.HTML('<h1>Widget 3</h1>'),
'Widget 4' : ipywidgets.HTML('<h1>Widget 4</h1>')
}
ipyflex.FlexLayout(widgets, style={'height':'400px'}, template='./layout.json', editable=False, header=True)
FlexLayout(children={'Widget 1': HTML(value='<h1>Widget 1</h1>'), 'Widget 2': HTML(value='<h1>Widget 2</h1>'),…