That’s awesome, thanks!
I should add that I plan to add this natively to the VS Code extension as well. No timeline, but it should actually be fairly simple.
Very useful, thanks!
Running the example on the README:
function profile_test(n) for i = 1:n A = randn(100,100,20) m = maximum(A) Am = mapslices(sum, A; dims=2) B = A[:,:,5] Bsort = mapslices(sort, B; dims=1) b = rand(100) C = B.*b end end profile_test(1) # run once to compile using Profile, ProfileVega Profile.clear() @profview profile_test(10)
I get some warnings:
WARN Can not resolve event source: window
Here is a screenshot:
These warnings are generated when one tries to display an interactive vega-lite spec in Jupyter. Whenever such a spec is displayed, we also create a PNG version in the background that is shipped to Jupyter, so that such a notebook displays something, even if the specific notebook client doesn’t support interactive features. This warning comes up during the PNG generation.
For now you can just ignore the message.
I’m about to merge a PR to
VegaLite#master that hides that message, so in the future this should just go away.