Track tasks and feature requests
Join 36 million developers who use GitHub issues to help identify, assign, and keep track of the features and bug fixes your projects need.
Sign up for free See pricing for teams and enterprises Add Virtual Environment to Jupyter Notebook. Jupyter Notebook makes sure that the IPython kernel is available, but you have to manually add a kernel with a different version of Python or a virtual environment. First, you need to activate your virtual environment. Next, install ipykernel which provides the IPython kernel for Jupyter.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
commented Jun 9, 2018
I'm working in windows using git-bash . I've created an environment called jupyter1. When I look at it inside pycharm I see: I've then installed a number of packages using pip. When I click on the round circle on the right I see the pip installed packages: This has been working fine for me in the pycharm IDE. Recently I've started to work in jupyter notebook . After starting a notebook and clicking on the conda tab and selecting jupyter1, I see: None of the pip packages are available. How do I make these available? |
commented Jun 10, 2018
That conda tab is something that conda adds - it's not in the notebook code. |
commented Jun 10, 2018 • edited
edited
Thank you, I have posted this question in the github conda repo as well. Do you have any thoughts on how to get access to the packages that have been pip installed in the conda env? |
commented Jun 10, 2018
I'd assume that they're there if you import them, just not showing up in the list. |
commented Jun 10, 2018
Right, it's probably just showing the output of 'conda list' which onlyknows what got there via 'conda install'... While written in python, condacan install all kinds of things, (e.g. node packages, r packages),including other package managers... But can't really tell what thosepackage managers might do after the fact. …On Sun, Jun 10, 2018, 16:00 Thomas Kluyver ***@***.***> wrote: I'd assume that they're there if you import them, just not showing up in the list. — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#3672 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AACxRIkUjKvG3Bfik1QO8LB8F0MkOdoqks5t7XrdgaJpZM4UheJM> . |
commented Jun 11, 2018
OK guys. thank you. |
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment
-->Although you can configure the environment for your notebook on the project level, you may want to install packages directly within an individual notebook.
Packages installed from the notebook apply only to the current server session. Package installations aren't persisted once the server is shut down.
Python
Packages in Python can be installed using either pip or conda using commands within code cells:
If the command output indicates that the requirement is already satisfied, then Azure Notebooks may include the package by default. The package might also be installed through a project environment setup step.
R
Packages in R can be installed from CRAN or GitHub using the
install.packages
function in a code cell:You can also install prerelease versions and other development packages from GitHub using the devtools library:
F#
Packages in F# can be installed from nuget.org by calling the Paket dependency manager from within code cells. First, load the Paket manager:
Then install packages: