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

Fix baseURL in vega extensions #7047 #7048

Closed
wants to merge 1 commit into from

Conversation

malramsay64
Copy link

This ensures that the path of the current notebook is included in the
URL for data files in the vega extensions.

This adds the baseURL back into the vega loaders which allows notebooks
running in subdirectories to properly load files. With the addition of
the sanitizing of urls in #7022 there are no longer the issues seen in
#7017 where the _xsrf token was placed in the middle of the URL.

References

Fixes #7047

See also #7017 and #7022 / #7031

Code changes

The vega loader includes the baseURL once again so it knows about the current directory of the current notebook.

User-facing changes

This changes the behaviour back to what existed in version 1.0.2

Backwards-incompatible changes

None

This ensures that the path of the current notebook is included in the
URL for data files in the vega extensions.
@jupyterlab-dev-mode
Copy link

Thanks for making a pull request to JupyterLab!

To try out this branch on binder, follow this link: Binder

@malramsay64
Copy link
Author

After testing this again this isn't working for me and I don't know why I thought it was working. Sorry for the noise.

@lock lock bot added the status:resolved-locked Closed issues are locked after 30 days inactivity. Please open a new issue for related discussion. label Sep 19, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Sep 19, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status:resolved-locked Closed issues are locked after 30 days inactivity. Please open a new issue for related discussion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Vega extension not loading in subdirectory
1 participant