{"cells":[{"cell_type":"code","execution_count":1,"metadata":{},"outputs":[],"source":"from pathlib import Path\nimport os\n\niskaggle = os.environ.get('KAGGLE_KERNEL_RUN_TYPE', '')\n# if iskaggle:\n#     !pip install -Uqq fastai\n# else:\n#     import zipfile,kaggle\n#     path = Path('czii-cryo-et-object-identification')\n#     kaggle.api.competition_download_cli(str(path))\n#     zipfile.ZipFile(f'{path}.zip').extractall(path)"},{"cell_type":"code","execution_count":2,"metadata":{},"outputs":[],"source":"cred_path = Path('~/.kaggle/kaggle.json').expanduser()\n# if not cred_path.exists():\n#     cred_path.parent.mkdir(exist_ok=True)\n#     cred_path.write_text(creds)\n#     cred_path.chmod(0o600)\n\ncred_path.exists()"},{"cell_type":"code","execution_count":3,"metadata":{},"outputs":[],"source":"import pandas as pd\nsubmission_data = {\n    'id': range(10),\n    'experiment': ['TS_5_4', 'TS_5_4', 'TS_5_4', 'TS_6_4', 'TS_6_4', 'TS_6_4', 'TS_69_2', 'TS_69_2', 'TS_69_2', 'TS_69_2'],\n    'particle_type': ['beta-amylase', 'beta-amylase', 'beta-galactosidase', 'ribosome', 'ribosome', 'ribosome', 'apo-ferritin', 'beta-galactosidase', 'ribosome', 'virus-like-particle'],\n    'x': [2983.596] * 10,\n    'y': [3154.13] * 10, \n    'z': [764.124] * 10\n}\nsubmission_df = pd.DataFrame(submission_data)\nsubmission_df.to_csv('submission.csv', index=False)"},{"cell_type":"code","execution_count":4,"metadata":{},"outputs":[],"source":"from fastkaggle import *"},{"cell_type":"code","execution_count":5,"metadata":{},"outputs":[],"source":"comp = 'czii-cryo-et-object-identification'\nn = 4\nif not iskaggle:\n    push_notebook('personallyaa', f'test-cryoet-submission-{n}', # change with your own username and notebook name here\n                  title=f'Testing a submission-{n}',\n                  file='simple_subm.ipynb',\n                  competition=comp, private=False, gpu=True)"},{"cell_type":"code","execution_count":null,"metadata":{},"outputs":[],"source":""}],"metadata":{"kernelspec":{"display_name":".venv1","language":"python","name":"python3"},"language_info":{"codemirror_mode":{"name":"ipython","version":3},"file_extension":".py","mimetype":"text/x-python","name":"python","nbconvert_exporter":"python","pygments_lexer":"ipython3","version":"3.12.3"}},"nbformat":4,"nbformat_minor":2}