holoviz / hvplot

A high-level plotting API for pandas, dask, xarray, and networkx built on HoloViews
https://hvplot.holoviz.org
BSD 3-Clause "New" or "Revised" License
1.08k stars 105 forks source link

Cannot save notebook on VPN when pyviz/hvplot or bokeh have outputs #260

Open ericmjl opened 5 years ago

ericmjl commented 5 years ago

I understand that this, at first glance, doesn't sound like a pyviz/hvplot or bokeh issue, but I ask that you hear me out and watch the screencast before judging.

The issue I'm facing is that when I have hvplot or bokeh outputs in my notebook, I am suddenly unable to save my notebook when connected to my company VPN. I have gone back-and-forth with our networking team, and when I finally narrowed down the issue, it turned out the minimal reproducible example was the one in the screencast.

This notebook cell would have no issues:

%%capture
import hvplot.pandas
import holoviews as hv

hv.extension("bokeh")

While this notebook cell would cause issues with saving:

import hvplot.pandas
import holoviews as hv

hv.extension("bokeh")

The only difference is whether or not I capture the output.

UPDATE: it also doesn't matter if I have hvplot graphics displaying in the notebook or not - only that first cell is an issue.

ALL software version info (hvPlot, holoviews, bokeh, python, notebook, OS, browser, any other relevant packages)

hvplot: 0.4.0 bokeh: 1.3.0 python: 3.7 jupyterlab: 1.0.2 jupyterlab_server: 1.0.0 jupyter: 1.0.0

Browser: Chrome 75.0.3770.142 OS: macOS 10.14.5

Stack traceback and/or browser JavaScript console output

Please see screencast for this.

Screenshots or screencasts of the bug in action

Screencast: https://drive.google.com/file/d/1ZI8AErWtU-7ZdwyranCOh205ykCgFCha/view?usp=sharing

philippjfr commented 4 years ago

@ericmjl Do you know if this is still an issue?

ericmjl commented 4 years ago

@philippjfr yes, it has been an issue for a while, and I'm not quite sure how to solve it. Thanks for pinging back, btw. :)

themericks commented 4 years ago

I also have this issue, but the minimum reproducible example is simply

import hvplot.pandas

Edit: Hadn't watched the video before posting this. I get the same behavior as ericmjl. However, the same thing also happens if I only run "import hvplot.xarray" and then plot a figure. As soon as I plot a figure using hvplot, I lose saving functionality.

maximlt commented 1 year ago

That is a pretty scary bug! If any of you is still using hvPlot and encounter this issue, please let us know so that we investigate further.