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

'Open Vegalite in notebook' can't work with local url file path #46

Open
zzhangjii opened this issue May 26, 2018 · 0 comments
Open

'Open Vegalite in notebook' can't work with local url file path #46

zzhangjii opened this issue May 26, 2018 · 0 comments

Comments

@zzhangjii
Copy link
Collaborator

The context menu command to open a vl.json file in Notebook doesn't work if the vl.json is using local url as its data source:

if the ''data' inside the vl.json looks like this:
"data":{"url":"./data/barley.json","format":{"type":"json"}}

then in notebook
data_src = json.load(json_data)
alt.Chart.from_dict(data_src)
will not display the correct graph, because data reading fails.

It seems currently Altair's from_dict() function only works with inline data or online url

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