Can I use an environment variable with a magicfunction such as writefile in my ipthon notebook?
%env WORKING_DIR=/my/path/to/my/file
!echo $WORKING_DIR
/my/path/to/my/file
but
%%writefile $WORKING_DIR/myfile.txt
sometext
IOError: [Errno 2] No such file or directory: '$WORKING_DIR/myfile.txt'