I hereby claim:
- I am jonathanagustin on github.
- I am drengskapur (https://keybase.io/drengskapur) on keybase.
- I have a public key whose fingerprint is 6DED 1D8C 4F9A 4376 7394 C58A 0C80 E974 9273 65DE
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| #!/bin/bash | |
| color() { | |
| STARTCOLOR="\e[$2"; | |
| ENDCOLOR="\e[0m"; | |
| export "$1"="$STARTCOLOR%b$ENDCOLOR" | |
| } | |
| color info 96m | |
| color success 92m | |
| color warning 93m |
| %matplotlib inline | |
| def bootstrap(): | |
| # @title Bootstrap Google Colab {display-mode:"form"} | |
| # CONFIGURE: Parameters | |
| GOOGLE_DRIVE_FOLDER = "my_folder" # @param {type:"string"} | |
| GitHub = True # @param {type:"boolean"} | |
| OpenAI = True # @param {type:"boolean"} | |
| HuggingFace = True # @param {type:"boolean"} |
| %%capture | |
| # ---------------------------------------------------------------------------- # | |
| # @title Install autogluon on Google Colab { display-mode: "form" } | |
| # ---------------------------------------------------------------------------- # | |
| import contextlib | |
| with open('/content/install-autogluon.log', 'w') as f: | |
| with contextlib.redirect_stdout(f): | |
| %pip install uv | |
| !git clone --recurse-submodules --depth=1 https://github.com/autogluon/autogluon.git | |
| !uv pip install --system -e /content/autogluon/common/ |
| %%capture | |
| # ---------------------------------------------------------------------------- # | |
| # @title Install auto-sklearn on Google Colab { display-mode: "form" } | |
| # ---------------------------------------------------------------------------- # | |
| import contextlib | |
| with open('/content/install-auto-sklearn.log', 'w') as f: | |
| with contextlib.redirect_stdout(f): | |
| %pip install uv | |
| !uv pip install --system Cython==0.29.36 pyparsing==2.4 | |
| !uv pip install --system -r https://raw.githubusercontent.com/automl/auto-sklearn/master/requirements.txt |
| #!/usr/bin/env python3 | |
| import subprocess | |
| from pathlib import Path | |
| SKIP_LIST = [ | |
| ".git", | |
| "build", | |
| "venv", | |
| ".venv", | |
| "node_modules", |
| print("Hello, World!") |
| # Colab2PDF v1.0.0 by Drengskapur (github.com/drengskapur/colab2pdf) (License: GPL-3.0-or-later) | |
| # @title {display-mode:"form"} | |
| # @markdown ⬇️ Download PDF | |
| def colab2pdf(): | |
| ENABLE=True # @param {type:"boolean"} | |
| if ENABLE: | |
| import os, datetime, json, pathlib, urllib, requests, werkzeug, nbformat, google, yaml, warnings | |
| NAME = pathlib.Path(werkzeug.utils.secure_filename(urllib.parse.unquote(requests.get(f"http://{os.environ['COLAB_JUPYTER_IP']}:{os.environ['KMP_TARGET_PORT']}/api/sessions").json()[0]["name"]))) | |
| TEMP = pathlib.Path("/content/pdfs") / f"{datetime.datetime.now().strftime('%Y%m%d_%H%M%S')}_{NAME.stem}"; TEMP.mkdir(parents=True, exist_ok=True) | |
| NB = [cell for cell in nbformat.reads(json.dumps(google.colab._message.blocking_request("get_ipynb", timeout_sec=30)["ipynb"]), as_version=4).cells if "--Colab2PDF" not in cell.source] |