{"metadata":{"kernelspec":{"language":"python","display_name":"Python 3","name":"python3"},"language_info":{"name":"python","version":"3.10.12","mimetype":"text/x-python","codemirror_mode":{"name":"ipython","version":3},"pygments_lexer":"ipython3","nbconvert_exporter":"python","file_extension":".py"},"kaggle":{"accelerator":"none","dataSources":[{"sourceId":84969,"databundleVersionId":10033515,"sourceType":"competition"}],"dockerImageVersionId":30839,"isInternetEnabled":true,"language":"python","sourceType":"notebook","isGpuEnabled":false}},"nbformat_minor":4,"nbformat":4,"cells":[{"cell_type":"code","source":"import subprocess\nimport sys\nimport os\n\n# Define packages and target directory\npackages = ['zarr', 'numcodecs']\ntarget_dir = '/kaggle/working/packages'\n\n# Force remove existing directory (if any)\nsubprocess.run(['rm', '-rf', target_dir], check=False)\n\n# Create directory and install packages\nos.makedirs(target_dir, exist_ok=True)\nfor pkg in packages:\n    subprocess.run([\n        sys.executable, '-m', 'pip', \n        'install', pkg, \n        '--target', target_dir, \n        '--no-cache-dir'\n    ])\n\nprint(f\"Successfully installed packages to {target_dir}!\")","metadata":{"_uuid":"8f2839f25d086af736a60e9eeb907d3b93b6e0e5","_cell_guid":"b1076dfc-b9ad-4769-8c92-a6c4dae69d19","trusted":true,"execution":{"iopub.status.busy":"2025-01-23T23:46:55.020636Z","iopub.execute_input":"2025-01-23T23:46:55.02091Z","iopub.status.idle":"2025-01-23T23:47:10.040787Z","shell.execute_reply.started":"2025-01-23T23:46:55.020885Z","shell.execute_reply":"2025-01-23T23:47:10.039923Z"}},"outputs":[],"execution_count":null},{"cell_type":"code","source":"import zarr","metadata":{"trusted":true,"execution":{"iopub.status.busy":"2025-01-23T23:47:10.041765Z","iopub.execute_input":"2025-01-23T23:47:10.042019Z","iopub.status.idle":"2025-01-23T23:47:10.045667Z","shell.execute_reply.started":"2025-01-23T23:47:10.041996Z","shell.execute_reply":"2025-01-23T23:47:10.044765Z"}},"outputs":[],"execution_count":null},{"cell_type":"code","source":"","metadata":{"trusted":true},"outputs":[],"execution_count":null}]}