Comments (6)
OK, so that explains why those kernels show up in Jupyter Notebook and not in euporie.
I think you said you installed euporie with pipx - so euporie will be in a different Python environment to Jupyter Notebook and your custom kernels.
Jupyter and euporie both search for kernelspecs in several folders, including the share
folder for the current Python environment (this is where kernelspecs for custom kernels usually get installed). Since Jupyter Notebook is running from the same environment in which the kernels are installed, it is able to find them.
Since Euporie is running in a different Python environment, it does not know anything about the environment with the custom kernels in, so does not find the kernelspecs.
By running python -m ipykernel install --user
, you install a copy of the kernelspec to your user profile, where euporie can find it.
from euporie.
Hello,
The kernel_connection_file
parameter in euporie's config allows you to connect to an existing running kernel instance by providing a kernel connection file. A kernel connection file contains the IP, ports, and authentication key needed to connect to an existing running instance of the kernel. Typically this file gets created when a kernel is launched.
The file C:\Users\asharaf\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone\share\jupyter\kernels\python3\kernel.json
is a kernelspec file. A kernel spec file tells Jupyter how to launch a particular kernel. So, as you have found, setting kernel_connection_file
to a kernelspec file will not work.
Normally you can switch the kernel from within euporie-notebook by selecting Kernel > Change kernel
from the menus - see here: https://euporie.readthedocs.io/en/latest/apps/notebook.html#changing-the-kernel
If your kernel does not show up on the list of available kernels in euporie, you need to register your kernel.
conda activate arcgispro-py3-clone
python -m ipykernel install --user --name python3-arcgispro --display-name "Python 3 (ArcGIS Pro)"
This should copy the python3
kernelspec folder to %APPDATA%\jupyter\kernels
, adding the correct python interpreter path. It should now show in the list of available kernels in euporie.
You can find more information about kernelspecs in the jupyter_client
documentation here:
https://jupyter-client.readthedocs.io/en/stable/kernels.html#kernelspecs
from euporie.
thanks @joouha . It works now. I removed the invalid config.json file and ran python -m ipykernel install --user --name python3-arcgispro --display-name "Python 3 (ArcGIS Pro)"
as you mentioned. Now euporie notebook can recognize my python interpreter. Sweet!
The only question now is when I run jupyter notebook
I see three kernels (the middle one is the one I just created). So why euporie couldn't use the existing one i already have. (maybe they are in a different location?)
from euporie.
Are you running Jupyter Notebook from within your arcgispro-py3-clone
conda environment?
from euporie.
yes
from euporie.
Thanks for the great explanation.
from euporie.
Related Issues (20)
- Key bindings in tmux HOT 3
- How to connect to hub HOT 12
- Xonsh support HOT 16
- Mac support HOT 2
- Confused about emacs keybindings HOT 5
- Plots are truncated HOT 10
- [Feature Request] Load percent python scripts as Notebook HOT 3
- ValueError: Unable to configure handler 'log_tab' HOT 2
- Bug: KeyError: 'log_file' HOT 2
- Using chafa.py gives (Format Conversion Error) HOT 7
- render error on matplotlib plots HOT 2
- How to connect notebook to kernel HOT 2
- Does this project support editing in $EDITOR? HOT 2
- Kernel died before replying to kernel_info HOT 8
- Inconsistency of `typing-extensions` and `platformdirs` in the dependencies HOT 2
- euporie-console stuck (unresponsive) for a long time on simple plots HOT 5
- Euporie Notebook freezes when typing `df[`
- Euporie Notebook freezes when typing `df[` HOT 5
- installing missing binaries HOT 2
- Improve the speed 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 euporie.