Answers: <p>Yeah, you can totally do this. We actually do a step up above that.  We run <a href="https://zero-to-jupyterhub.readthedocs.io/" rel="nofollow noreferrer">https://zero-to-jupyterhub.readthedocs.io/</a> over kubernetes.  It gives each user their own notebook server on kubernetes, but its based on a given docker image.  So, we build notebooks and some data files into the images so that each user starts with default examples/tutorials.</p>
  <p>More recently, we also found &quot;The Littlest JupyterHub&quot;.  This is much simpler and lets you host a multi user JupyterHub server which you can do similar things to -&gt; <a href="https://tljh.jupyter.org/en/latest/index.html" rel="nofollow noreferrer">https://tljh.jupyter.org/en/latest/index.html</a>.</p>
  <p>The two above options are nice as you can &quot;host&quot; the service for everyone on a server/site so they don't have to set up their local computers.  But they still each get their own area/sandbox.</p>
  <p>If you really just want a docker image, then start your docker file with <code>FROM</code> the image here -&gt; <a href="https://jupyterhub.readthedocs.io/en/stable/quickstart-docker.html" rel="nofollow noreferrer">https://jupyterhub.readthedocs.io/en/stable/quickstart-docker.html</a>.  Then you can <code>COPY</code> the notebook and CSV files to the user home directory.  Then people can use your image instead, if you host it on DockerHub or some org registry like ECR/GitLab/Artifactory/etc.</p>
  <p>This last option is less ideal though as it requires users to actually have Docker installed and have some knowledge of using it (pull image/create/manage containers). Many people that use Jupyter/Python for some data tasks often have no idea about Docker.</p>
  <p>The service alternatives above let you deal with the set-up so your users can focus on the product.</p>
  
Answers: CC BY-SA 4.0
Answers: 2022-01-07T11:02:22.870Z
Answers: thank you so much! I'll investigate what you suggest! thank you very much!
Answers: Daniele
Answers: CC BY-SA 4.0
Answers: 2022-01-07T13:30:38.240Z
Answers: Cool :).  If it works out vote up and accept/close out the question to keep the site clean.  Good luck!
Answers: John Humphreys
Answers: CC BY-SA 4.0
Answers: 2022-01-04T19:37:46.623Z
Answers: 2022-01-04T19:37:46.623Z
Answers: John Humphreys
Body: <p>I have a project composed of 6 different Jupyter Notebooks and 4 CSV files. I would like also my colleagues can try to use this project, even if they don't have python installed and maybe with another csv. Is it possible to do this by creating a docker image of this project and letting them &quot;play&quot; with the notebooks and the data?</p>
  
Tags: <docker><containers>
Title: How to dockerize a jupyer notebooks project?
UserDisplayName: Daniele
ThreadText: # How to dockerize a jupyer notebooks project?
  
  (Asked by: username_0 on 2022-01-02)
  
  I have a project composed of 6 different Jupyter Notebooks and 4 CSV files. I would like also my colleagues can try to use this project, even if they don't have python installed and maybe with another csv. Is it possible to do this by creating a docker image of this project and letting them "play" with the notebooks and the data?
  
  **Tags:** docker, containers
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2022-01-04. Score: 2 | Accepted answer
  
  Yeah, you can totally do this. We actually do a step up above that. We run <https://zero-to-jupyterhub.readthedocs.io/> over kubernetes. It gives each user their own notebook server on kubernetes, but its based on a given docker image. So, we build notebooks and some data files into the images so that each user starts with default examples/tutorials.
  
  More recently, we also found "The Littlest JupyterHub". This is much simpler and lets you host a multi user JupyterHub server which you can do similar things to -> <https://tljh.jupyter.org/en/latest/index.html>.
  
  The two above options are nice as you can "host" the service for everyone on a server/site so they don't have to set up their local computers. But they still each get their own area/sandbox.
  
  If you really just want a docker image, then start your docker file with `FROM` the image here -> <https://jupyterhub.readthedocs.io/en/stable/quickstart-docker.html>. Then you can `COPY` the notebook and CSV files to the user home directory. Then people can use your image instead, if you host it on DockerHub or some org registry like ECR/GitLab/Artifactory/etc.
  
  This last option is less ideal though as it requires users to actually have Docker installed and have some knowledge of using it (pull image/create/manage containers). Many people that use Jupyter/Python for some data tasks often have no idea about Docker.
  
  The service alternatives above let you deal with the set-up so your users can focus on the product.
  
  > **Comments:**
  > **username_0**: thank you so much! I'll investigate what you suggest! thank you very much!  
  > **username_1**: Cool :).  If it works out vote up and accept/close out the question to keep the site clean.  Good luck!  
  
  ---
  
  