Skip to content
New issue

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

Getting custom environments to appear in Jupyter kernel list on windows #2

Closed
rsignell-usgs opened this issue Jan 19, 2018 · 14 comments

Comments

@rsignell-usgs
Copy link

rsignell-usgs commented Jan 19, 2018

@jkellndorfer , okay we spent hours last night trying to get this to work with Miniconda and failed, right?

We should have just read the IOOS environment instructions by Filipe @ocefpaf at
http://ioos.github.io/notebooks_demos/other_resources/
because we missed a step.

After installing miniconda, we should have done:

conda config --add channels conda-forge --force
conda update --all  -y
conda install  nb_conda_kernels -y
conda env create -f cond_edb.yml -q --force

The conda update --all step is important because it updates all the packages to conda-forge.

The above works. Proof:
2018-01-19_10-11-50

@jkellndorfer
Copy link
Contributor

jkellndorfer commented Jan 19, 2018 via email

@jkellndorfer
Copy link
Contributor

jkellndorfer commented Jan 19, 2018 via email

@ocefpaf
Copy link

ocefpaf commented Jan 19, 2018

I see that @rsignell-usgs already answered that one via e-mail but here it is for completeness in case someone looks for it in this issue:

https://conda.io/docs/user-guide/tasks/create-custom-channels.html

One alternative is to create your own installable "miniconda-like" distribution with conda-constructor:

https://github.com/conda/constructor

My experiences with constructor in the past where not good but that was one year ago and maybe the project evolved.

@josef-ebd
Copy link
Contributor

josef-ebd commented Jan 24, 2018 via email

@ocefpaf
Copy link

ocefpaf commented Jan 24, 2018

I tried condo-constructor, but didn’t succeed either.

I guess that constructor is not mature enough yet.

I assume I would have to delete all those that didn’t come from conda-forge before building the channel. Is that’s how you do it?

No, I leave them all there. Let me know if that approach does not work for you.

@jkellndorfer
Copy link
Contributor

jkellndorfer commented Jan 24, 2018 via email

@jkellndorfer jkellndorfer reopened this Jan 24, 2018
@jkellndorfer
Copy link
Contributor

Ok, I was able to make it work in Windows with:

activate ebd
conda install nb_conda_kernels. # if it was not installed yet with the updated conda_ebd.yml
jupyter notebook

@rsignell-usgs
Copy link
Author

Well, at least something works.

But I still want my kernels available for selection in the notebook, they way it worked just 5 days ago:

2018-01-19_15-32-35

@josef-ebd
Copy link
Contributor

josef-ebd commented Jan 24, 2018 via email

@ocefpaf
Copy link

ocefpaf commented Jan 24, 2018

jupyter_client 5.2.2 for Windows just got uploaded to the channel. Can you try it again and let me know? I suspect that it should work without the nb_conda_kernels patch, if not I will work on it tomorrow.

@jkellndorfer
Copy link
Contributor

jkellndorfer commented Jan 24, 2018 via email

@rsignell-usgs
Copy link
Author

rsignell-usgs commented Jan 24, 2018

On Windows, just did:

activate root
conda install jupyter_client
jupyter notebook

and..... 🍾 🍾 🍾

2018-01-24_14-57-43

@ocefpaf
Copy link

ocefpaf commented Jan 24, 2018

Thanks to @minrk for fixing jupyter_client in jupyter/jupyter_client#339!

@rsignell-usgs
Copy link
Author

rsignell-usgs commented Jan 24, 2018

I just did

activate root
conda install terminado
jupyter notebook

to get the terminal support, just to complete the Jupyter experience. No more "Terminals Unavailable":

2018-01-24_15-03-24

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants