Thanks @riziles.
Versions:
jupyter==1.0.0
matplotlib==3.6.1
panel==0.14.3
I tried adding your code to a notebook (test_panel.ipynb
), executing interactively in jupyter-notebook. The tab shows up fine.
If I then run:
jupyter-nbconvert test_panel.ipynb --execute --to=notebook --output test_panel1.ipynb
And open up test_panel1.ipynb
in jupyter-notebook then the tab is not visible.
The jupyter-notebook (test_panel.ipynb
) and jupyter-nbconvert (test_panel.ipynb
) versions differ slightly and the var docs_json
json appears to have differences that cause the nbconvert version to not render when opening the notebook in another jupyter-notebook session. In particular, there is a minor reordering of the json that appears to be the problem.
Apologies, I would upload the notebooks as attachements but dont have permission.
Diff of the json:
1c1
< {'121c9091-e889-493e-a969-8e86efa2788a': {'defs': [{'extends': None,
---
> {'c59e08d2-1aa2-4dcd-b5aa-fe7fb1e93c06': {'defs': [{'extends': None,
143a144,153
> {'attributes': {'height': 600,
> 'margin': [0,
> 0,
> 0,
> 0],
> 'min_height': 600,
> 'tabs': [{'id': '1004'}],
> 'tags': ['embedded']},
> 'id': '1002',
> 'type': 'panel.models.tabs.Tabs'},
157,167c167
< 'type': 'panel.models.markup.HTML'},
< {'attributes': {'height': 600,
< 'margin': [0,
< 0,
< 0,
< 0],
< 'min_height': 600,
< 'tabs': [{'id': '1004'}],
< 'tags': ['embedded']},
< 'id': '1002',
< 'type': 'panel.models.tabs.Tabs'}],
---
> 'type': 'panel.models.markup.HTML'}],