Skip to content

Commit

Permalink
Try to debug failure
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Feb 28, 2019
1 parent 5d39840 commit a6292e6
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ jobs:
- doit develop_install -o recommended -o tests -o build $CHANS_DEV
- pip install codecov altair
- doit env_capture
- jupyter nbconvert --to notebook --ExecutePreprocessor.allow_errors=True --execute examples/user_guide/Introduction.ipynb
- cat examples/user_guide/Introduction.ipynb | xargs echo -e
script: doit test_all_recommended
after_failure:
- sleep 10
Expand Down
14 changes: 13 additions & 1 deletion examples/user_guide/Introduction.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,15 @@
"pn.interact(sine)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"%tb"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down Expand Up @@ -263,7 +272,10 @@
"def hvplot(df, **kwargs):\n",
" return df.hvplot()\n",
"\n",
"pn.interact(sine, view_fn=hvplot)"
"try:\n",
" display(pn.interact(sine, view_fn=hvplot))\n",
"except Exception as e:\n",
" print(e)"
]
},
{
Expand Down
5 changes: 1 addition & 4 deletions panel/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,7 @@ def __call__(self, *args, **params):
# to allow multiple cleanup comms to be registered
JupyterCommManager.get_client_comm(self._process_comm_msg,
"hv-extension-comm")
try:
_load_nb(p.inline)
except:
pass
_load_nb(p.inline)
self._loaded = True

Viewable._comm_manager = JupyterCommManager
Expand Down

0 comments on commit a6292e6

Please sign in to comment.