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

Interactivity tutorial returns error when first cell is run. #6850

Closed
Coderambling opened this issue May 18, 2024 · 3 comments
Closed

Interactivity tutorial returns error when first cell is run. #6850

Coderambling opened this issue May 18, 2024 · 3 comments
Labels
more info needed type: docs Related to the Panel documentation and examples

Comments

@Coderambling
Copy link
Contributor

Page: https://panel.holoviz.org/tutorials/intermediate/interactivity.html

Result of pressing Play on first cell:

pyodide.ffi.JsException: NetworkError: Failed to execute 'send' on 'XMLHttpRequest': Failed to load 'https://assets.holoviz.org/panel/tutorials/turbines.csv.gz'.

The file downloads fine when the link is entered in a browser.

Content of first cell:

import panel as pn
import pandas as pd

pn.extension("tabulator")

data_url = 'https://assets.holoviz.org/panel/tutorials/turbines.csv.gz'

turbines = pn.cache(pd.read_csv)(data_url)

cols = pn.widgets.MultiChoice(
options=turbines.columns.to_list(), value=['p_name', 't_state', 't_county', 'p_year', 't_manu', 'p_cap'],
width=500, height=100, name='Columns'
)

@philippjfr
Copy link
Member

Cannot reproduce this, seems like a network error on your end.

@philippjfr philippjfr added type: docs Related to the Panel documentation and examples more info needed labels May 21, 2024
@Coderambling
Copy link
Contributor Author

Coderambling commented May 21, 2024

Thanks! Tried again and it works for me now. Strange, beause separate download of the file worked fine at the time I observed the error.

@philippjfr
Copy link
Member

Thanks for reporting back, I'll close for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
more info needed type: docs Related to the Panel documentation and examples
Projects
None yet
Development

No branches or pull requests

2 participants