Giter VIP home page Giter VIP logo

Comments (9)

domoritz avatar domoritz commented on May 25, 2024 1

Just tried this in a conda environment.

Screen Shot 2021-07-23 at 11 58 47

from ipyvega.

domoritz avatar domoritz commented on May 25, 2024 1

Does it work if you run jupyter nbextension install --sys-prefix --py vega before starting the kernel?

from ipyvega.

domoritz avatar domoritz commented on May 25, 2024

That should work. Can you try the example notebook in this repo? Can you try to restart the browser? Any errors in the browser console?

from ipyvega.

ohad avatar ohad commented on May 25, 2024

Thanks for picking this up quickly!

  • Try the notebook in this repo: Yes, I'm getting the same unexpected behaviour.
  • Restart the browser: I tried, it doesn't help. I also get this behaviour on two different browsers (Firefox and Chromium). A collaborator of mine had the same issue on a different machine with a different OS (Windows).
  • Any errors in the browser console? I have some, but it's not clear to me they come from this error:
tried to detect trackers before rules were loaded background.js:450
    getTrackerData moz-extension://25dab8af-a127-4050-8335-23a0a75b30f2/public/js/background.js:450
    handleRequest moz-extension://25dab8af-a127-4050-8335-23a0a75b30f2/public/js/background.js:21181
    apply self-hosted:2732
    applySafeWithoutClone resource://gre/modules/ExtensionCommon.jsm:626
    fire resource://gre/modules/ExtensionChild.jsm:806
    recvRunListener resource://gre/modules/ExtensionChild.jsm:810
    recvRunListener self-hosted:1175
    _recv resource://gre/modules/ConduitsChild.jsm:78
    receiveMessage resource://gre/modules/ConduitsChild.jsm:184
    run resource://gre/modules/ConduitsChild.jsm:175
    receiveMessage resource://gre/modules/ConduitsChild.jsm:176
    map self-hosted:221
    receiveMessage resource://gre/modules/ConduitsChild.jsm:176
this.trackerList is undefined background.js:524
    findTracker moz-extension://25dab8af-a127-4050-8335-23a0a75b30f2/public/js/background.js:524
    isTracker moz-extension://25dab8af-a127-4050-8335-23a0a75b30f2/public/js/background.js:22300
    truncateReferrer moz-extension://25dab8af-a127-4050-8335-23a0a75b30f2/public/js/background.js:22527
    limitReferrerData moz-extension://25dab8af-a127-4050-8335-23a0a75b30f2/public/js/background.js:18413
    apply self-hosted:2732
    applySafeWithoutClone resource://gre/modules/ExtensionCommon.jsm:626
    fire resource://gre/modules/ExtensionChild.jsm:806
    recvRunListener resource://gre/modules/ExtensionChild.jsm:810
    recvRunListener self-hosted:1175
    _recv resource://gre/modules/ConduitsChild.jsm:78
    receiveMessage resource://gre/modules/ConduitsChild.jsm:184
    run resource://gre/modules/ConduitsChild.jsm:175
    receiveMessage resource://gre/modules/ConduitsChild.jsm:176
    map self-hosted:221
    receiveMessage resource://gre/modules/ConduitsChild.jsm:176

from ipyvega.

domoritz avatar domoritz commented on May 25, 2024

I don't know how to help then. I suspect this is another issue with the setup and not a bug in the library.

from ipyvega.

ohad avatar ohad commented on May 25, 2024

Well thanks for the help! I assume you cannot reproduce this on your end?

from ipyvega.

ohad avatar ohad commented on May 25, 2024

OK, thanks! I'll ask around and see if I can reproduce it with pip on another system.

from ipyvega.

ohad avatar ohad commented on May 25, 2024

I think there's something missing in the pip installation instructions.

I created a new Dockerfile:

FROM ubuntu:latest
RUN apt-get update && apt-get -y update
RUN apt-get install -y build-essential python3.6 python3-pip python3-dev firefox wget
RUN pip3 -q install pip --upgrade
RUN pip3 -q install jupyter pandas vega
RUN pip3 -q install --upgrade notebook
RUN wget https://raw.githubusercontent.com/vega/ipyvega/master/notebooks/cars.json

then launched it with gui enabled:

docker build -t issue-354 .
xhost +   # Don't forget to `xhost -` afterwards
docker run -it --env="DISPLAY" --net=host issue-354 # We should now be inside the container
jupyter notebook --allow-root # firefox should now launch with a notebook

This reproduces the behaviour I described, the image doesn't appear.

from ipyvega.

ohad avatar ohad commented on May 25, 2024

Thanks, esp. for the quick replies! I confirm that now works (in the container and on my machine).
I was thrown off by the qualification: '# not needed in notebook >= 5.3'.
Maybe we ought to do it always anyway?

from ipyvega.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.