# Deploy Jupyter App

**URL:** <https://discourse.openondemand.org/t/deploy-jupyter-app/3072>\
**Category:** Get Help\
**Created:** [November 1, 2023, 8:26pm UTC](https://discourse.openondemand.org/t/deploy-jupyter-app/3072 "2023-11-01T20:26:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![prod-feng](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/prod-feng/32/1931_2.png) [@prod-feng](https://discourse.openondemand.org/u/prod-feng)\
**Post date:** [November 1, 2023, 8:26pm UTC](https://discourse.openondemand.org/t/deploy-jupyter-app/3072/1 "2023-11-01T20:26:49Z")

</div>

Hi,

Thanks for everyone’s help here. I have brought up our OOD server with Keycloak+LDAP.

Right now I am setting up Deploying Jupyter App, and it can work in the sandbox mode. One thing I am confusing is:

Jupyter notebook seems like a single user app? The “pip” command will install it in $HOME/.local folder. Even if I move this folder to a public accessible folder, will it work properly?

I googled a lot, it looks like better to use Jupyter lab for multiple users, so is it better fit for OOD?

Thanks!

Feng

---

<div class="post-metadata">

**Author:** ![jeff.ohrstrom](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/jeff.ohrstrom/32/136_2.png) [@jeff.ohrstrom](https://discourse.openondemand.org/u/jeff.ohrstrom)\
**Post date:** [November 1, 2023, 8:33pm UTC](https://discourse.openondemand.org/t/deploy-jupyter-app/3072/2 "2023-11-01T20:33:38Z")

</div>

Do your compute nodes use `modules` ([TACC’s lmod](https://github.com/tacc/lmod) or similar?)

We (OSC) use TACC’s lmod for modules and it looks like we’ve installed jupyter in a given directory under an anaconda environment that activates when the module is loaded (the first `execute` function call)

```auto
[stable-diff(main)] module show app_jupyter
------------------------------------------------------------------------------------------------------------------------------------------
   /apps/lmodfiles/project/ondemand/Core/app_jupyter/3.0.17.lua:
------------------------------------------------------------------------------------------------------------------------------------------
whatis("loads app_jupyter")
help([[This module loads app_jupyter
Configured and installed with modules:
project/ondemand]])
setenv("OSC_APP_JUPYTER_DIR","/apps/project/ondemand/app_jupyter/3.0.17")
load("texlive","nodejs","git")
setenv("OSC_JUPYTER_PATH","/apps/project/ondemand/app_jupyter/3.0.17/osc/share/jupyter")
setenv("JUPYTERLAB_DIR","/users/PZS0714/johrstrom/.jupyter/lab/3.0")
execute{cmd="source /apps/project/ondemand/app_jupyter/3.0.17/bin/activate", modeA={"load"}}
execute{cmd="source /apps/project/ondemand/app_jupyter/3.0.17/bin/osc_check_jupyterlab_dir", modeA={"load"}}
execute{cmd="deactivate", modeA={"unload"}}

```

---

<div class="post-metadata">

**Author:** ![prod-feng](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/prod-feng/32/1931_2.png) [@prod-feng](https://discourse.openondemand.org/u/prod-feng)\
**Post date:** [November 1, 2023, 11:00pm UTC](https://discourse.openondemand.org/t/deploy-jupyter-app/3072/3 "2023-11-01T23:00:44Z")

</div>

Thanks, Jeff!

Yes, we have modules. I will copy pip install of notebook to a public accessible folder, and test again. Hope it should work fine.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/osc/original/2X/b/bae70bd0ed39a3ae769c2108155f4cb3e9da8385.png) [@system](https://discourse.openondemand.org/u/system)\
**Post date:** [April 29, 2024, 11:00pm UTC](https://discourse.openondemand.org/t/deploy-jupyter-app/3072/4 "2024-04-29T23:00:55Z")

</div>

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
