# Jupyterlab or nteract borks on vegalite plot, bug or something I'm doing wrong?

**URL:** <https://discourse.julialang.org/t/jupyterlab-or-nteract-borks-on-vegalite-plot-bug-or-something-im-doing-wrong/40443>\
**Category:** General Usage\
**Tags:** jupyter\
**Created:** [May 29, 2020, 10:33pm UTC](https://discourse.julialang.org/t/jupyterlab-or-nteract-borks-on-vegalite-plot-bug-or-something-im-doing-wrong/40443 "2020-05-29T22:33:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dlakelan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dlakelan/32/8491_2.png) [@dlakelan](https://discourse.julialang.org/u/dlakelan)\
**Post date:** [May 29, 2020, 10:33pm UTC](https://discourse.julialang.org/t/jupyterlab-or-nteract-borks-on-vegalite-plot-bug-or-something-im-doing-wrong/40443/1 "2020-05-29T22:33:54Z")

</div>

I’m trying out the simplest example I could think of in Jupyterlab and it borked… Is there something that I need to do to get vegalite plots to show up properly? (NOTE: it also borks in nteract)

If I do this from the REPL it pops up a new tab in my Firefox browser and the plot is shown normally. So that works at least.

Jupyterlab version 2.1.3 installed a few days ago. Julia 1.4.1 from Debian repo

@davidanthoff? BTW: thanks much for all the work put into this. I’m looking forward to using it all when I get things working.

```julia
using Queryverse;

1:10 |> @map({x=_,y=_^2}) |> @vlplot(:points,x=:x,y=:y)

TypeError: Cannot read property 'orient' of undefined
    at getMarkConfig (/home/dlakelan/.julia/artifacts/5da26dbdbf431ee15ff70d775217136ddf71426e/node_modules/vega-lite/build/vega-lite.js:4455:80)
    at getMarkPropOrConfig (/home/dlakelan/.julia/artifacts/5da26dbdbf431ee15ff70d775217136ddf71426e/node_modules/vega-lite/build/vega-lite.js:4444:16)
    at initMarkdef (/home/dlakelan/.julia/artifacts/5da26dbdbf431ee15ff70d775217136ddf71426e/node_modules/vega-lite/build/vega-lite.js:18605:33)
    at new UnitModel (/home/dlakelan/.julia/artifacts/5da26dbdbf431ee15ff70d775217136ddf71426e/node_modules/vega-lite/build/vega-lite.js:19358:28)
    at buildModel (/home/dlakelan/.julia/artifacts/5da26dbdbf431ee15ff70d775217136ddf71426e/node_modules/vega-lite/build/vega-lite.js:19590:20)
    at Object.compile (/home/dlakelan/.julia/artifacts/5da26dbdbf431ee15ff70d775217136ddf71426e/node_modules/vega-lite/build/vega-lite.js:19652:27)
    at compile (/home/dlakelan/.julia/artifacts/5da26dbdbf431ee15ff70d775217136ddf71426e/vl2vg.js:18:27)
    at /home/dlakelan/.julia/artifacts/5da26dbdbf431ee15ff70d775217136ddf71426e/vl2vg.js:32:19
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)
    at /home/dlakelan/.julia/artifacts/5da26dbdbf431ee15ff70d775217136ddf71426e/vg2svg.js:42:32
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
TypeError: Cannot read property 'orient' of undefined
    at getMarkConfig (/home/dlakelan/.julia/artifacts/5da26dbdbf431ee15ff70d775217136ddf71426e/node_modules/vega-lite/build/vega-lite.js:4455:80)
    at getMarkPropOrConfig (/home/dlakelan/.julia/artifacts/5da26dbdbf431ee15ff70d775217136ddf71426e/node_modules/vega-lite/build/vega-lite.js:4444:16)
    at initMarkdef (/home/dlakelan/.julia/artifacts/5da26dbdbf431ee15ff70d775217136ddf71426e/node_modules/vega-lite/build/vega-lite.js:18605:33)
    at new UnitModel (/home/dlakelan/.julia/artifacts/5da26dbdbf431ee15ff70d775217136ddf71426e/node_modules/vega-lite/build/vega-lite.js:19358:28)
    at buildModel (/home/dlakelan/.julia/artifacts/5da26dbdbf431ee15ff70d775217136ddf71426e/node_modules/vega-lite/build/vega-lite.js:19590:20)
    at Object.compile (/home/dlakelan/.julia/artifacts/5da26dbdbf431ee15ff70d775217136ddf71426e/node_modules/vega-lite/build/vega-lite.js:19652:27)
    at compile (/home/dlakelan/.julia/artifacts/5da26dbdbf431ee15ff70d775217136ddf71426e/vl2vg.js:18:27)
    at /home/dlakelan/.julia/artifacts/5da26dbdbf431ee15ff70d775217136ddf71426e/vl2vg.js:32:19
    at processTicksAndRejections (internal/process/task_queues.js:93:5)

Javascript Error: n[t.type] is undefined

SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)
    at /home/dlakelan/.julia/artifacts/5da26dbdbf431ee15ff70d775217136ddf71426e/node_modules/vega-cli/src/render.js:61:31
    at processTicksAndRejections (internal/process/task_queues.js:93:5)

```
