-
Notifications
You must be signed in to change notification settings - Fork 7
Running in a docker instance? Currently have kernel death #7
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
Comments
Yes, I have it working fine in Docker, although I just run the container locally. Here's my Dockerfile if you want to compare. |
Actually… are you creating a |
Apologies for the silence - I had to jump to another project for a while. Looking at your Dockerfile, I'm not getting a running build yet.... however I can see a future problem for me: I use I've managed to build your image, but still getting the same fault.... getting a colleague to independently check my work. Question: what happens if the stata.lic file is invalid? |
You can use secrets in docker-compose. See sample here. I've been using docker compose to run that image for a while but I'd forgotten to push to github. If there's no valid Also, I'm just using |
Ah... excellent - thanks... definitely getting further now. Current block is Run in a jupyterlab console:
.... which, understandably, kills the pystata-kernel |
The Did you follow the full installation instructions, including
|
If you are manaully importing As school has started, I am sorry I cannot be of more help on this topic as it is not my top priority right now. |
OK.... I've solved it - it required bits of knowledge from various comments above. For some reason, I wasn't getting the I've got an image that does the install as I had it, but in a first-stage image - then used the rest of method that @ideabucket uses to copy that installed stata into my final image. I've even managed to include the update section I was completely unaware of, to improve my final Notebook Server. Now I need to deploy and test that the nbgrader stuff is still working [in the classic UI] :) |
Has anyone got this working in a jupyter notebook in a docker image?
I'm rebuilding a Jupyter Notebook Docker image with the stata kernel installed.
It worked fine with Stata 16 (I was using
stata_kernel
) and I thought all was well with Stata 17 - however I recently discovered I could not get that kernel to display images.I've switched to
pystata-kernel
, and now I'm just gettingKernel Restarting
errors for the simplest things.(I should note, at this point, that my notebook-servers are built to run in a kubernetes cloud, with the users home directory mounted at
/home/jovyan
- so anything built into/home/jovyan
gets lost.)Dockerfile
The
docker-entrypoint.sh
is so I can create the config file in a users home directory:Everything builds fine, the notebook-server starts fine, and a notebook-document starts for the stata kernel.
The test
I have tried in both the Classic and Lab interfaces - both exhibit the same issue
Even running the simplest code -
display "Hello, world!"
- I get aKernel Restarting
error popup (The kernel for Untitled.ipynb appears to have died. It will restart automatically.
)Log file
This is what I get in my docker log-file:
Looking for help/advise on making this work...
The text was updated successfully, but these errors were encountered: