Comments (3)
I'm pretty sure someone already made this. I haven't been able to find it with a quick googling.
from jupyter_client.
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.
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)
- Use Cases for `silent=True`
- How to get kernel_id from a running Python kernel? HOT 1
- Exposing kernel contents (file system) via comms HOT 4
- Questions about the debug message spec HOT 1
- Update wrapperkernels documentation
- deprecate automatically parsing header timestamps
- Add `jupyter kernelspec list/remove --missing` to list/remove all missing kernels.
- Question: How can I make the code completer recognize extra namespace?
- DeprecationWarning: Parsing dates involving a day of month without a year specified is ambiguious HOT 2
- zmq.Poller is not async HOT 1
- Compatibility issues with requests library HOT 1
- Exception raised in KernelClient.del when shutting down kernel after executing code using kc.execute_interactive() HOT 2
- Jupyter run app TIMEOUT HOT 2
- Kernels dies immediately due to library name collisions HOT 5
- Clarification of `history_request` status and future plans HOT 1
- Weird failures in `jupyter_client` with jupyter_core 5.3.2 HOT 2
- Getting the first element of entrypoints results in a KeyError
- 8.5.0: pytest is failing in two units HOT 5
- multikernelmanager update_env error HOT 3
- When no kernel is found, jupter-run crashes with a traceback HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jupyter_client.