Ask Your Question

eocansey's profile - activity

2020-12-27 03:23:19 +0200 received badge  Notable Question (source)
2020-07-03 18:19:09 +0200 received badge  Popular Question (source)
2019-07-12 12:29:17 +0200 received badge  Nice Question (source)
2019-07-11 23:06:28 +0200 received badge  Supporter (source)
2019-07-11 17:19:35 +0200 received badge  Student (source)
2019-07-11 02:49:23 +0200 asked a question Interact layout in Jupyter-Notebook

When I run this code

@interact(layout=dict(top=[['f', 'color']], 
left=[['axes'],['fill']], 
bottom=[['zoom']]))
def _(f=input_box(x^2,width=20), 
color=color_selector(widget='colorpicker', label=""),
axes=True,
fill=True,
zoom=range_slider(-3,3, default=(-3,3))):
    show(plot(f,(x,zoom[0], zoom[1]), color=color, axes=axes,fill=fill))

in Jupyter notebook, the controls are not organised as specified. But this is not so with the old SageNB notebook. How can I make the controls specified in the layout parameter to appear in the output as originally specified? Please advise.