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

WARN Missing type for channel "x", using "quantitative" instead #341

Open
logankilpatrick opened this issue Nov 17, 2020 · 2 comments
Open

Comments

@logankilpatrick
Copy link

Hey all, this is in regards to this thread: https://stackoverflow.com/questions/64849353/julia-vegalite-jl-how-to-disable-the-warninigs/64852944?noredirect=1#comment114697860_64852944

The crux of the issue is that these warnings below only show up in a notebook (and not when running in the Repl). Any suggestions to remove these? (I looked around eh source code for the warning message but it did not show on GitHub search.

Code:

  α  = rand(10,2)
  β  = rand(10,2)
  v1 = @vlplot(:circle,x=α[:,1],y=α[:,2])
  v2 = @vlplot(mark={"type"=:circle,color="red"},x=β[:,1],y=β[:,2])
  @vlplot()+v1+v2

Gives the following warnings:

WARN Missing type for channel "x", using "quantitative" instead.
WARN Missing type for channel "y", using "quantitative" instead.
WARN Missing type for channel "x", using "quantitative" instead.
WARN Missing type for channel "y", using "quantitative" instead.
WARN Missing type for channel "x", using "quantitative" instead.
WARN Missing type for channel "y", using "quantitative" instead.
WARN Missing type for channel "x", using "quantitative" instead.
WARN Missing type for channel "y", using "quantitative" instead.
@mcmcgrath13
Copy link
Collaborator

@logankilpatrick those warnings come from the underlying vega-lite js package. I'm guessing this has to do with how IJulia imports/displays vega plots vs the version shipped with VegaLite.jl for the REPL.

The IJulia version of vega-lite comes from the extension that ships with Jupyter, whereas there are artifacts that are used when plotting from the repl. How the two are displayed, I believe also differs, but I haven't looked at that code in a fair while.

@davidanthoff
Copy link
Member

I'm pretty positive that the problem is that Jupyter Lab ships a very outdated version of vega and vega-lite, and I think this was something that was fixed in vega and vega-lite in more recent versions. Only hope we have on that is that Jupyter Lab starts to ship a more recent version of vega and vega-lite... I opened an issue for that over there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants