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

"Bokeh was not loaded in time" #126

Open
githubuser441 opened this issue Feb 8, 2021 · 0 comments
Open

"Bokeh was not loaded in time" #126

githubuser441 opened this issue Feb 8, 2021 · 0 comments

Comments

@githubuser441
Copy link

githubuser441 commented Feb 8, 2021

Running the following chartify code:
import chartify
data = chartify.examples.example_data()
price_by_date = (
data.groupby('date')['total_price'].sum()
.reset_index() # Move 'date' from index to column
)
print(price_by_date.head())
ch = chartify.Chart(blank_labels=True, x_axis_type='datetime')
ch.set_title("Line charts")
ch.set_subtitle("Plot two numeric values connected by an ordered line.")
ch.plot.line(
# Data must be sorted by x column
data_frame=price_by_date.sort_values('date'),
x_column='date',
y_column='total_price')
ch.save('test.svg', 'svg')

Returns the error:
Traceback (most recent call last): File "c:\Users\User12\Documents\test-script.py", line 16, in <module> ch.save('test.svg', 'svg') File "C:\Users\User12\AppData\Local\Programs\Python\Python39\lib\site-packages\chartify\_core\chart.py", line 415, in save image = self._figure_to_svg() File "C:\Users\User12\AppData\Local\Programs\Python\Python39\lib\site-packages\chartify\_core\chart.py", line 480, in wrapper return f(self, *args, **kwargs) File "C:\Users\User12\AppData\Local\Programs\Python\Python39\lib\site-packages\chartify\_core\chart.py", line 503, in _figure_to_svg wait_until_render_complete(driver, 10) File "C:\Users\User12\AppData\Local\Programs\Python\Python39\lib\site-packages\bokeh\io\export.py", line 330, in wait_until_render_complete raise RuntimeError('Bokeh was not loaded in time. Something may have gone wrong.') from e RuntimeError: Bokeh was not loaded in time. Something may have gone wrong.

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