Coder Social home page Coder Social logo

Comments (3)

minrk avatar minrk commented on August 16, 2024

I'm pretty sure someone already made this. I haven't been able to find it with a quick googling.

from jupyter_client.

jankatins avatar jankatins commented on August 16, 2024

This is basically https://github.com/Cadair/jupyter_environment_kernels and especially Cadair/jupyter_environment_kernels#6 which implements conda envs and makes it work on windows. This currently checks for ipython in an env and and if ipython{.exe} is there, a kernel entry is generated on the fly.

The biggest problem I haven't found a solution for is how to activate the env: it's no problem to start a kernel in such an env, simple by specifying the full path to the python in that env, but it breaks if there is an app in the env, which the a kernel process expects but which is not in PATH because the env wasn't activated. -> #127 (Use case: installing pandoc/latex in an env...)

from jupyter_client.

takluyver avatar takluyver commented on August 16, 2024

I think this is a bit different: my suggestion here was to detect if there is an environment already active, and install ipykernel in that if so. With IPython 4.x, if you have a virtualenv active when you run the notebook server, it will kind of respect that by adding the virtualenv site-packages to sys.path.

But a) that's not the same as properly running in an isolated env, b) it's specific to virtualenv, not conda, and c) we're getting rid of that as a kernel feature with ipykernel 5.0. So I wrote this proposal as a suggestion for people who like that feature in ipykernel 4.x, as a better way to achieve the same thing.

from jupyter_client.

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.