question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Please add support of pyenv python versions

See original GitHub issue

It will be very useful to work with different pyenv python versions located in ˜/.pyenv/versions/.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
chasylexuscommented, Dec 18, 2018

OK! Thank you very much!

Finally, here is instruction:

  1. Generate config file if not yet: jupyter notebook --generate-config
  2. Add following lines to the end of the file:
c.NotebookApp.kernel_spec_manager_class = 'environment_kernels.EnvironmentKernelSpecManager'
c.EnvironmentKernelSpecManager.virtualenv_env_dirs=['~/.pyenv/versions/']
c.EnvironmentKernelSpecManager.virtualenv_prefix_template = "{}"
c.EnvironmentKernelSpecManager.display_name_template = "{}"

This works for Jupyter Lab! The only problem is that default python appears twise in kernels list with two different names.

0reactions
Cadaircommented, Dec 18, 2018

oh it should be:

c.EnvironmentKernelSpecManager.display_name_template = "{}"
Read more comments on GitHub >

github_iconTop Results From Across the Web

[Feature Request] Support resolving minor Python versions ...
This repository is maintaining pyenv and the default python-build plugin only. Please refrain from reporting issues of other plugins here.
Read more >
Managing Multiple Python Versions With pyenv
In this step-by-step tutorial, you'll learn how to install multiple Python versions and switch between them with ease, including project-specific virtual ...
Read more >
Using pyenv to Install Python
You have many versions of Python to choose from and to see all available Python versions, you can run the command pyenv install...
Read more >
How to use pyenv to manage Python versions
If you need to install multiple Python versions, going the ol' installer ... I show you how I manage multiple Python versions, using...
Read more >
Cannot switch Python with pyenv - Stack Overflow
do you have a ".python-version" file in that directory? – Dorian. Apr 19 at 20:36. Add ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found