Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hvplot.show() does not return the expected threading.Thread | Server object #1115

Closed
dogbunny opened this issue Jul 21, 2023 · 0 comments
Closed

Comments

@dogbunny
Copy link
Contributor

ALL software version info

hvplot 0.8.4

Description of expected behavior and the observed behavior

calling hvplot.show() returns the threading.Thread or Server object (depending on whether threading is true or false)

The show method likely just needs to have a return added: https://github.com/holoviz/hvplot/blob/main/hvplot/utilities.py#L29

Complete, minimal, self-contained example code that reproduces the issue

import hvplot
import hvplot.pandas
import pandas as pd
import numpy as np

ts = pd.Series(np.random.randn(1000), index=pd.date_range('1/1/2000', periods=1000))
ts = ts.cumsum()
plot = ts.hvplot()
s = hvplot.show(plot, **{'threaded': True})
s.stop()

Stack traceback and/or browser JavaScript console output

In [12]: s.stop()

AttributeError Traceback (most recent call last)
Cell In[12], line 1
----> 1 s.stop()

AttributeError: 'NoneType' object has no attribute 'stop'

Screenshots or screencasts of the bug in action

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant