{"cells":[{"metadata":{"_uuid":"8f2839f25d086af736a60e9eeb907d3b93b6e0e5","_cell_guid":"b1076dfc-b9ad-4769-8c92-a6c4dae69d19","trusted":true},"cell_type":"markdown","source":"Let's say you've struggled for quite a while, trained a network in a Kaggle Kernel and would like to save the submission file locally. One of solutions is described by Abhishek [here](https://www.kaggle.com/general/77352). But there exists a much simpler way!"},{"metadata":{"_uuid":"5f74cd08f14a266b83862aa4d10f37dff195e8cb"},"cell_type":"markdown","source":"Let's assume this is the file that you'd like to save locally:"},{"metadata":{"_cell_guid":"79c7e3d0-c299-4dcb-8224-4455121ee9b0","_uuid":"d629ff2d2480ee46fbb7e2d37f6b5fab8052498a","trusted":true,"scrolled":true},"cell_type":"code","source":"!echo \"qid,prediction\" > submission.csv","execution_count":null,"outputs":[]},{"metadata":{"trusted":true,"_uuid":"4dc1f322ac9f66842932dc9c00a983a7fc778ed3"},"cell_type":"code","source":"from IPython.display import FileLink\nFileLink('submission.csv')","execution_count":null,"outputs":[]},{"metadata":{"_uuid":"5dea72b23d991cb0786b25ffae4812fe68b60c00"},"cell_type":"markdown","source":"Voula! Happy blending!\n\n<img src='https://habrastorage.org/webt/ut/zk/ip/utzkip2sdihrzu0xd9iatqhbvii.jpeg' width=70%>\n*Image from the [Discussion](https://www.kaggle.com/general/76963) \"Nerd Laughing Loud\"*"}],"metadata":{"kernelspec":{"display_name":"Python 3","language":"python","name":"python3"},"language_info":{"name":"python","version":"3.6.6","mimetype":"text/x-python","codemirror_mode":{"name":"ipython","version":3},"pygments_lexer":"ipython3","nbconvert_exporter":"python","file_extension":".py"}},"nbformat":4,"nbformat_minor":1}