|
|
|
@ -48,7 +48,7 @@ for username in usernames:
|
|
|
|
|
with open("jupyter_notebook_config.temp.py", "w") as f:
|
|
|
|
|
print (nbconfig.render(**userdata), file=f)
|
|
|
|
|
os.system(f"sudo mv jupyter_notebook_config.temp.py /home/{username}/.jupyter/jupyter_notebook_config.py")
|
|
|
|
|
os.system(f"sudo chown {username}:{username} /home/{username}/.jupyter/jupyter_notebook_config.py")
|
|
|
|
|
os.system(f"sudo chown -R {username}:{username} /home/{username}/.jupyter")
|
|
|
|
|
else:
|
|
|
|
|
print (nbconfig.render(**userdata))
|
|
|
|
|
print()
|
|
|
|
|