These are chat archives for ipython/ipython
[I 18:35:34.992 NotebookApp] Kernel started: a3387289-6e0c-4cf1-9d78-945ff757a46b [W 18:35:35.034 NotebookApp] 404 GET /kernelspecs/jskernel/logo-64x64.png (::1) 9.53ms referer=http://localhost:8888/notebooks/Untitled1.ipynb?kernel_name=jskernel [W 18:35:45.023 NotebookApp] Timeout waiting for kernel_info reply from a3387289-6e0c-4cf1-9d78-945ff757a46b
I noticed today working in master, that any new notebook I create or copy has permissions 0o600 and ignores my umask. In IPython.utils.io.atomic_writing() uses mkstemp() to create a temporary file for the atomic write. According to the python docs, mkstemp creates files as 0o600.
After the write succeeds to the tmp file, _copy_metadata is called to copy the metadata from the original file to destination file. It will throw an exception if there is no source file. Thus when the notebook is copied into the notebook dir, it has permissions 0o600.