Support other package managers besides pip/conda
See original GitHub issueI’m using PEP582 featured Python package manager (e.g. PyFlow or PDM) which installs local packages in {project_path}/__pypackages__
folder.
The problem is that I did not find a way to set Jupyter Server to find ipykernel in {project_path}/__pypackages__
. VSCode asks me to install ipykernel by pip
, but I’ve already install it locally in {project_path}/__pypackages__
.
I need a way to run a Jupyter Cell (ctrl + enter) in my python code with #%%
which would find the ipykernel in {project_path}/__pypackages__
.
- How do I config Jupyter Server properly to find ipykernel in
{project_path}/__pypackages__
? - How do I config
{project_path}/__pypackages__
for Python package search paths?
Issue Analytics
- State:
- Created 2 years ago
- Reactions:3
- Comments:12 (7 by maintainers)
Top Results From Across the Web
Which Python package manager should you use? | by Yufeng G
There are currently two popular options for taking care of managing your different pip packages: virtualenv and anaconda. Virtualenv. Virtualenv ...
Read more >What is the difference between pip and conda? - Stack Overflow
Pip installs Python packages whereas conda installs packages which may contain software written in any language. For example, before using pip, a Python ......
Read more >Alternatives to Pip - Real Python
There are a number of alternatives to pip that you may want to try. Conda is the package and environment manager that comes...
Read more >Using Packages and Channels - The Carpentries Incubator
system-level libraries; Python or other modules; executable programs and other ... For reference, bioconda is a channel for the conda package manager ......
Read more >Add Packages to the Package Management Environment
Use this API to add Python and R packages to a Package Management ... Qubole provides other endpoints to access QDS that are...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yes, If only trying to solve my specific problem.
For abstract thinking in problem solving, I think the problem is: how to eliminate different behavior when launching a VSCode workspace with different ways (make it consistent).
I think there are many ways to solve this abstract question:
settings.json
. (which currently is not available in general settings)PYTHONPATH
support findingipykernel
before launching. (which currently is not working insettings.json
).env
)I found that setting
$PYTHONPATH
in VSCode doesn’t help launch python code by Command Palettes:Run code
Python: Run Python File in Terminal
Jupyter: Run Current Cell
the
sys.path
will not contain my local packages (__pypackages__/3.7/lib
).I have no idea that is a bug or not. I need a way to load my local modules in Jupyter, including finding local ipykernel when launching.
Thanks for your info, I finally know what is going on here.
Unfortunately there haven’t been enough upvotes on this feature request, hence closing this issue