Skip to content

v1.1.0 - Expanded Colab tool coverage

Choose a tag to compare

@ringo380 ringo380 released this 14 Jun 00:33
· 19 commits to main since this release

First tagged release. Adds 22 tools for broad Google Colab coverage on top of the multi-session, headless-capable baseline.

New tools

  • Runtime: get_resource_usage (live GPU util/mem, RAM, disk)
  • Drive: mount_drive, unmount_drive, list_drive_files
  • Secrets: inject_secret_to_env (sets an env var without returning the value), get_secret
  • VM filesystem: list_vm_files, read_vm_file, write_vm_file, delete_vm_file
  • Inspection: list_variables, inspect_variable (type, shape/dtype, DataFrame head)
  • Async execution: run_async, poll_execution (incremental output via cursor), stop_async (cooperative), list_jobs - background in-kernel thread for hours-long jobs
  • Browser/UI (Playwright sessions): change_runtime_type, connect_runtime, factory_reset_runtime, save_notebook, complete_drive_mount_consent
  • Rich output: optional capture_plots on execute_code returns matplotlib figures as image blocks

Notes

  • Tools reach Colab three ways: frontend-proxied (execute_code, cell ops), execute_code-composed Python (Drive/secrets/VM/inspection), and Playwright DOM control for actions the kernel cannot perform. Browser-only tools return a clear error on the non-Playwright backend.
  • inject_secret_to_env refuses loader-sensitive variables (PATH, LD_PRELOAD, etc.) and never echoes the secret value.
  • Includes a pytest suite (37 tests); the Playwright-dependent tests skip cleanly when the headless extra is not installed.

Install: pip install . or pip install '.[headless]' for browser-driven tools.