GithubHelp home page GithubHelp logo

Setup doesn't work about jupyter-shoebot HOT 9 CLOSED

shoebot avatar shoebot commented on July 24, 2024
Setup doesn't work

from jupyter-shoebot.

Comments (9)

rlafuente avatar rlafuente commented on July 24, 2024

I've tried it in a test virtualenv and it worked -- what went wrong on your side exactly?

from jupyter-shoebot.

stuaxo avatar stuaxo commented on July 24, 2024

It couldn't find pip.main ... I think they must have moved it :(

pip is version 10.0

I think they only guarantee the commandline interface, not the internals with pip.

I need to have more of a play, because when I do get it installed, the kernel can't import shoebot.

from jupyter-shoebot.

rlafuente avatar rlafuente commented on July 24, 2024

Odd, I did get that error but I think it went away after doing pip install jupyter-pip

I did try this with pip 9. However I've just made a fresh virtualenv (running pip10) and it works with the following steps:

# install shoebot from jupyter branch
cd shoebot
git checkout jupyter
python setup.py install
# install jupyter
pip install jupyter jupyter-pip
# install the extension
cd ../jupyter-shoebot
python setup.py install
jupyter kernelspec install shoebot_kernel --sys-prefix

Can you try this and see if it goes through?

from jupyter-shoebot.

stuaxo avatar stuaxo commented on July 24, 2024

That worked, but then I had trouble with imports.

It might be because I'm using zsh and some plugin that tries to change the virtualenv when you move directory, I'll have another go later.

from jupyter-shoebot.

rlafuente avatar rlafuente commented on July 24, 2024

Just checked and can confirm that the error that it can't find pip.main can be fixed by installing jupyter-pip. (at least on my system!)

FWIW I'm also on zsh and running simple virtualenvwrapper. I did miss one step in my previous comment -- jupyter kernelspec install shoebot_kernel --sys-prefix (I've edited the comment above to reflect this).

On this command, I've just noticed that the install docs mentioned the --user flag (put stuff in $HOME/.local) instead of --sys-prefix (put stuff in Py prefix, for virtualenvs), just fixed it.. Maybe that was the hitch in your case?

from jupyter-shoebot.

stuaxo avatar stuaxo commented on July 24, 2024

I was using --user

I like to avoid installing stuff in the system python though (python is my day job, so I like to leave the system python unmolested and use virtualenvs for everything) - is there a way to do it without --sys-prefix.

from jupyter-shoebot.

rlafuente avatar rlafuente commented on July 24, 2024

You should use --sys-prefix for virtualenvs, since the prefix becomes the virtualenv's when you activate it, it's exactly for use cases like yours

from jupyter-shoebot.

stuaxo avatar stuaxo commented on July 24, 2024

That's what I thought it should do, but it was complaining about not being able to write to /usr, I'll try again later.

from jupyter-shoebot.

stuaxo avatar stuaxo commented on July 24, 2024

Seems to work for me with --sys-prefix, closing :)

from jupyter-shoebot.

Related Issues (15)

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.