Categories
Development Linux Python Ubuntu

Allow All Users to Import Python Script

We have a JupyterHub server and it spawns Jupyter notebooks to users. I wrote a Python script and I want all users to be allowed to import it to their notebooks. There is a PYTHONPATH environment variable for single users, but how can I accomplish it for all users have a account on the system?

Categories
Development Linux Python Ubuntu

Allow All Users to Import Python Script

We have a JupyterHub server and it spawns Jupyter notebooks to users. I wrote a Python script and I want all users to be allowed to import it to their notebooks. There is a PYTHONPATH environment variable for single users, but how can I accomplish it for all users have a account on the system?