Skip to content

Commit

Permalink
fix the bug of the voila with AppLayout (#331)
Browse files Browse the repository at this point in the history
Co-authored-by: Dou Du <[email protected]>
  • Loading branch information
dou-du and Dou Du authored May 9, 2024
1 parent 2d78ad4 commit 0778e0a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions notebook/statistical-mechanics/diffusion_2d.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,9 @@
" plt.show()\n",
"\n",
"initialize_plot()\n",
"display(ipw.VBox([ipw.HBox([plotup_out]), ipw.HBox([ctrl_widgets, plotdwn_out])]))"
"\n",
"display(plotup_out)\n",
"display(ipw.AppLayout(left_sidebar=ctrl_widgets, center=plotdwn_out))"
]
},
{
Expand Down Expand Up @@ -418,7 +420,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.12"
"version": "3.11.5"
},
"voila": {
"authors": "Guoyuan Liu, Dou Du and Giovanni Pizzi"
Expand Down

0 comments on commit 0778e0a

Please sign in to comment.