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

Make JS versions more inspectable #97

Open
jakevdp opened this issue Jul 4, 2018 · 4 comments
Open

Make JS versions more inspectable #97

jakevdp opened this issue Jul 4, 2018 · 4 comments

Comments

@jakevdp
Copy link
Contributor

jakevdp commented Jul 4, 2018

It would be nice to provide an easy means for the user to see what version of vega/vega-lite is installed with this package.

Currently (unless I'm mistaken) the only way is to look at package.json, find the vega-embed version, then go to the correct vega-embed release, open its package.json, and look for the vega-lite version there.

I'd love something similar to

>>> import vega
>>> vega.js_versions
{'vega': '4.0.0',
 'vega-lite': '2.6.0',
 'vega-embed': '3.16.0'}

The trick is to do that without too much manual bookkeeping...

@domoritz
Copy link
Member

domoritz commented Jul 4, 2018

If we had a way to communicate back from the JavaScript to the kernel, this would be easier.

@jakevdp
Copy link
Contributor Author

jakevdp commented Jul 4, 2018

Is there a way to generate files as part of the npm build step?

@jakevdp
Copy link
Contributor Author

jakevdp commented Jul 4, 2018

Or maybe just something like console.logging the versions on load?

@domoritz
Copy link
Member

domoritz commented Jul 4, 2018

It would be nice to if we don't have to add another build step to compile the versions into the python code. Logging the versions on load is trivial.

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

2 participants