Skip to content

Commit

Permalink
Update propNav.ipynb
Browse files Browse the repository at this point in the history
Added missing widgets is not none check before instantiating tab widget.
  • Loading branch information
gedeschaines committed Mar 19, 2024
1 parent 3b20cbd commit abb99df
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions propNav.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2135,7 +2135,7 @@
" \n",
" # Create tab widget to display inline plot\n",
" # figures for Matplotlib NbAgg backend.\n",
" if Backend == 'nbAgg': \n",
" if (Backend == 'nbAgg') and (widgets is not None): \n",
" fig_tabs = []\n",
" for ifig in PLOT_FIGS.keys():\n",
" if PLOT_FIGS[ifig]:\n",
Expand Down Expand Up @@ -2643,7 +2643,7 @@
" if TB is None:\n",
" figures = plotFig12(figures)\n",
" elif RUN_WITH_COLAB:\n",
" with TB.output_to(\"Fig-12\", select=False):\n",
" with TB.output_to(\"Fig-12\", select=True):\n",
" figures = plotFig12(figures)\n",
" plt.show(block=False)\n",
" else:\n",
Expand Down Expand Up @@ -2826,7 +2826,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "bd4cbc80976a41ad98e62848e303de5f",
"model_id": "acfb98a2d22a42efb3166a39fe872125",
"version_major": 2,
"version_minor": 0
},
Expand Down

0 comments on commit abb99df

Please sign in to comment.