Closed morganhferry closed 5 years ago
Yes, you can do it just in the jupyter_notebook_config.py
:
import getpass
username = getpass.getuser()
...
c.S3ContentsManager.prefix = os.path.join(username, "jupyter_notebooks")
Ah, perfect. Thank you!
We are using S3Contents in conjunction with JupyterHub. We would like to be able to indicate in the prefix a username. Some sort of flag that picks up the user and creates their directory in S3 within their folder name. Is this already possible? IE in the /etc/jupyter/jupyter_notebook_config.py file:
c.S3ContentsManager.prefix = "$USER/jupyter_notebooks"