# Configure JupyterHub to Use Nexus Repositories

**URL:** <https://discourse.jupyter.org/t/configure-jupyterhub-to-use-nexus-repositories/19576>\
**Category:** discuss\
**Tags:** jupyterhub, how-to\
**Created:** [May 25, 2023, 3:27pm UTC](https://discourse.jupyter.org/t/configure-jupyterhub-to-use-nexus-repositories/19576 "2023-05-25T15:27:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gmitchel850](https://avatars.discourse-cdn.com/v4/letter/g/ecd19e/32.png) [@gmitchel850](https://discourse.jupyter.org/u/gmitchel850)\
**Post date:** [May 25, 2023, 3:27pm UTC](https://discourse.jupyter.org/t/configure-jupyterhub-to-use-nexus-repositories/19576/1 "2023-05-25T15:27:44Z")

</div>

We use Nexus as our internal repo.

What configuration modifications do we need to make to route pip and cran calls inside JupyterHub to our internal Nexus repos.

---

<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:** [May 25, 2023, 6:50pm UTC](https://discourse.jupyter.org/t/configure-jupyterhub-to-use-nexus-repositories/19576/2 "2023-05-25T18:50:10Z")

</div>

Hi. Do you mean you want to redirect calls made from a shell in a singleuser server such as JupyterLab to PyPI and CRAN? In most cases each user will have their own shell environment including their own home directory. I haven’t used Nexus, but assuming it provides the same API as PyPI/CRAN you can add whatever config files you’d normally use outside of JupyterHub, e.g.

- [Configuration - pip documentation v23.1.2](https://pip.pypa.io/en/stable/topics/configuration/)
- [Permanently Setting the CRAN repository | R-bloggers](https://www.r-bloggers.com/2011/11/permanently-setting-the-cran-repository/)
