# TLJH: run iPython from different environment for all users

**URL:** <https://discourse.jupyter.org/t/tljh-run-ipython-from-different-environment-for-all-users/31439>\
**Category:** JupyterHub\
**Created:** [January 7, 2025, 5:07pm UTC](https://discourse.jupyter.org/t/tljh-run-ipython-from-different-environment-for-all-users/31439 "2025-01-07T17:07:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vsessink](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/vsessink/32/12886_2.png) [@vsessink](https://discourse.jupyter.org/u/vsessink)\
**Post date:** [January 7, 2025, 5:07pm UTC](https://discourse.jupyter.org/t/tljh-run-ipython-from-different-environment-for-all-users/31439/1 "2025-01-07T17:07:16Z")

</div>

Hi,  
First, a simple question: am i right that the default TLJH uses a single conda env for both the Hub and the underlying Lab and iPython kernels - the one that is documented [Install conda, pip or apt packages — The Littlest JupyterHub documentation](https://tljh.jupyter.org/en/latest/howto/user-env/user-environment.html#user-environment-location) here? (“System environment” in this link talks about /usr/bin/python which is the _Linux_ system environment).  
Then my question is: (where) can I tell TLJH to start iPython from another environment? I.e. I’d like to have a TLJH environment with packages for TLJH, then have it start kernels from an environment that has been specifically tuned to the notebooks. I would rather not use nb\_conda\_kernels, as I would prefer TLJH to start a kernel.  
Oh, I did see [Named Server and unique Workdirectories - #5 by Stephen](https://discourse.jupyter.org/t/named-server-and-unique-workdirectories/19668/5) (which is about PATHs) and [Running jupyterlab / notebook in another environment](https://discourse.jupyter.org/t/running-jupyterlab-notebook-in-another-environment/15337) which is about jupyter notebook - they look promising. Is the latter the thing I should do, just change `# c.Spawner.cmd = ['jupyterhub-singleuser']` in the configuration?

---

<div class="post-metadata">

**Author:** ![manics](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/manics/32/85_2.png) [@manics](https://discourse.jupyter.org/u/manics)\
**Post date:** [January 7, 2025, 10:55pm UTC](https://discourse.jupyter.org/t/tljh-run-ipython-from-different-environment-for-all-users/31439/2 "2025-01-07T22:55:59Z")

</div>

TLJH has two environments, one for the hub and one for users

> **[The system, hub, and user environments](https://tljh.jupyter.org/en/latest/topic/three-environments.html)**
>
> TLJH’s documentation mentions the system environment, the hub environment, and the user environment. This section will introduce what is meant with that and clarify the distinctions between the env...

Is that what you need?
