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

datascience-notebook: Julia kernel not available for selection #30

Closed
pdmct opened this issue Sep 10, 2015 · 6 comments
Closed

datascience-notebook: Julia kernel not available for selection #30

pdmct opened this issue Sep 10, 2015 · 6 comments

Comments

@pdmct
Copy link

pdmct commented Sep 10, 2015

Julia kernel doesn't appear in the list of available kernels in the Jupyter interface. (Only Python2,3 and R are listed)

@pdmct
Copy link
Author

pdmct commented Sep 10, 2015

I tried manually updating the kernelspec by adding to Dockerfile:

RUN $CONDA_DIR/envs/python2/bin/python $CONDA_DIR/envs/python2/bin/ipython kernelspec install --replace --name ijulia /root/.ipython/kernels/julia-0.3/

Which gets Julia to show up in the available kernel list -- but kernel doesn't run/crashes when I try to do anything.

@parente
Copy link
Member

parente commented Sep 11, 2015

Which docker image tag did you pull? latest?

@parente
Copy link
Member

parente commented Sep 11, 2015

I see it too. Looks like another problem with the kernel spec installing into the active user directory (root) when the dockerfile is running instead of system wide. This broke when we moved the jovyan user creation out of the Dockerfile and into the start script to give control over the UID (PR #16)

The possible fix for issue #25 will probably fix regression too.

@parente
Copy link
Member

parente commented Sep 11, 2015

With PR #31 and this change in the datascience-notebook/Dockerfile everything works again:

USER jovyan

# Install IJulia packages as jovyan and then move the kernelspec out
# to the system share location. Avoids problems with runtime UID change not 
# taking effect properly on the .local folder in the jovyan home dir.
RUN julia -e 'Pkg.add("IJulia")' && \
    mv /home/$NB_USER/.local/share/jupyter $CONDA_DIR/share/ && \
    chmod -R go+rx $CONDA_DIR/share/jupyter && \
    rm -rf /home/$NB_USER/.local/share
RUN julia -e 'Pkg.add("Gadfly")' && julia -e 'Pkg.add("RDatasets")'

USER root

PR #31 needs more testing before merging however.

parente added a commit to parente/docker-stacks that referenced this issue Sep 11, 2015
parente added a commit to parente/docker-stacks that referenced this issue Sep 11, 2015
Contribution (c) Copyright IBM Corp. 2015
parente added a commit to parente/docker-stacks that referenced this issue Sep 11, 2015
Contribution (c) Copyright IBM Corp. 2015
parente added a commit to parente/docker-stacks that referenced this issue Sep 11, 2015
Contribution (c) Copyright IBM Corp. 2015
@parente
Copy link
Member

parente commented Sep 13, 2015

IJulia just had a regression against Julie 0.3 that will prevent builds even after the PR mentioned above goes into master here.

JuliaLang/IJulia.jl@e01b2e4#commitcomment-13197892

parente added a commit that referenced this issue Sep 13, 2015
Contribution (c) Copyright IBM Corp. 2015
@parente
Copy link
Member

parente commented Sep 13, 2015

Now fixed in the latest and 4.0 tags on Docker Hub.

@parente parente closed this as completed Sep 13, 2015
rochaporto pushed a commit to rochaporto/docker-stacks that referenced this issue Jan 23, 2019
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

2 participants