|
|
@ -48,7 +48,7 @@ for username in usernames:
|
|
|
|
with open("jupyter_notebook_config.temp.py", "w") as f:
|
|
|
|
with open("jupyter_notebook_config.temp.py", "w") as f:
|
|
|
|
print (nbconfig.render(**userdata), file=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 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:
|
|
|
|
else:
|
|
|
|
print (nbconfig.render(**userdata))
|
|
|
|
print (nbconfig.render(**userdata))
|
|
|
|
print()
|
|
|
|
print()
|
|
|
|