{"metadata":{"kernelspec":{"language":"python","display_name":"Python 3","name":"python3"},"language_info":{"pygments_lexer":"ipython3","nbconvert_exporter":"python","version":"3.6.4","file_extension":".py","codemirror_mode":{"name":"ipython","version":3},"name":"python","mimetype":"text/x-python"}},"nbformat_minor":4,"nbformat":4,"cells":[{"cell_type":"code","source":"!apt-get update\n!apt-get --download-only --assume-yes -o Dir::Cache=\"/kaggle/working/\" install libvips-dev","metadata":{"_uuid":"8f2839f25d086af736a60e9eeb907d3b93b6e0e5","_cell_guid":"b1076dfc-b9ad-4769-8c92-a6c4dae69d19","execution":{"iopub.status.busy":"2023-10-31T03:50:39.624168Z","iopub.execute_input":"2023-10-31T03:50:39.624458Z","iopub.status.idle":"2023-10-31T03:50:51.559835Z","shell.execute_reply.started":"2023-10-31T03:50:39.624432Z","shell.execute_reply":"2023-10-31T03:50:51.558858Z"},"collapsed":true,"jupyter":{"outputs_hidden":true},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"!pip download -d /kaggle/working/ pyvips","metadata":{"execution":{"iopub.status.busy":"2023-10-31T03:50:51.561641Z","iopub.execute_input":"2023-10-31T03:50:51.561954Z","iopub.status.idle":"2023-10-31T03:50:56.975399Z","shell.execute_reply.started":"2023-10-31T03:50:51.561906Z","shell.execute_reply":"2023-10-31T03:50:56.974268Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"!pip wheel /kaggle/working/pyvips-2.2.1.tar.gz","metadata":{"execution":{"iopub.status.busy":"2023-10-31T03:50:56.977001Z","iopub.execute_input":"2023-10-31T03:50:56.97786Z","iopub.status.idle":"2023-10-31T03:51:03.658979Z","shell.execute_reply.started":"2023-10-31T03:50:56.977821Z","shell.execute_reply":"2023-10-31T03:51:03.657823Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"!rm /kaggle/working/pyvips-2.2.1.tar.gz","metadata":{"execution":{"iopub.status.busy":"2023-10-31T03:54:15.599765Z","iopub.execute_input":"2023-10-31T03:54:15.600455Z","iopub.status.idle":"2023-10-31T03:54:16.53398Z","shell.execute_reply.started":"2023-10-31T03:54:15.600418Z","shell.execute_reply":"2023-10-31T03:54:16.532695Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"!ls .","metadata":{"execution":{"iopub.status.busy":"2023-10-31T03:54:20.289789Z","iopub.execute_input":"2023-10-31T03:54:20.290183Z","iopub.status.idle":"2023-10-31T03:54:21.218121Z","shell.execute_reply.started":"2023-10-31T03:54:20.290149Z","shell.execute_reply":"2023-10-31T03:54:21.217089Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"!zip -r archives_p100.zip .","metadata":{"execution":{"iopub.status.busy":"2023-10-31T03:55:17.94754Z","iopub.execute_input":"2023-10-31T03:55:17.948864Z","iopub.status.idle":"2023-10-31T03:55:22.772366Z","shell.execute_reply.started":"2023-10-31T03:55:17.948819Z","shell.execute_reply":"2023-10-31T03:55:22.771309Z"},"collapsed":true,"jupyter":{"outputs_hidden":true},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"# turn off internet","metadata":{}},{"cell_type":"code","source":"!dpkg -i --force-depends --force-confold /kaggle/working/archives/*.deb >/dev/null 2>&1","metadata":{"execution":{"iopub.status.busy":"2023-10-31T03:55:51.628365Z","iopub.execute_input":"2023-10-31T03:55:51.62902Z","iopub.status.idle":"2023-10-31T03:56:40.407334Z","shell.execute_reply.started":"2023-10-31T03:55:51.628983Z","shell.execute_reply":"2023-10-31T03:56:40.406202Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"# !pip install /kaggle/working/cffi-1.16.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl\n!pip install /kaggle/working/pycparser-2.21-py2.py3-none-any.whl\n!pip install /kaggle/working/pyvips-2.2.1-py2.py3-none-any.whl","metadata":{"execution":{"iopub.status.busy":"2023-10-31T03:56:40.409247Z","iopub.execute_input":"2023-10-31T03:56:40.40956Z","iopub.status.idle":"2023-10-31T03:57:22.105369Z","shell.execute_reply.started":"2023-10-31T03:56:40.409531Z","shell.execute_reply":"2023-10-31T03:57:22.10442Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"import pyvips","metadata":{"execution":{"iopub.status.busy":"2023-10-31T03:57:22.106748Z","iopub.execute_input":"2023-10-31T03:57:22.10707Z","iopub.status.idle":"2023-10-31T03:57:22.7054Z","shell.execute_reply.started":"2023-10-31T03:57:22.10704Z","shell.execute_reply":"2023-10-31T03:57:22.704087Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"","metadata":{},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"","metadata":{},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"","metadata":{},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"","metadata":{},"execution_count":null,"outputs":[]}]}