Make %catalog execute immediately, round out its verb set, and share help rendering - #55
Merged
Merged
Conversation
`%catalog` calls now commit themselves the moment a cell runs instead of queueing behind a separate commit step; `CatalogSession` still does the committing underneath (retry/rollback unchanged), it's just no longer something a custodian has to remember to call. Adds `use(path)`/`%%catalog use(path)` to set relative-path context explicitly (validated against the catalog, `../` support for walking up parent paths anywhere a relative path is accepted), and rounds out the verb set with `get_wiki`, `get_tags`, `list`, `schema`, `delete_view`, `delete_table` (all erroring on a missing path). Renames `copy`/`move` to `data_copy`/`data_move`, `tag`/`untag` to `set_tags`/`delete_tags`, and drops `set_meta` in favor of `set_wiki`. `%catalog help`/`%ingest help` render as an HTML table grouped by verb category (data, table, view, wiki, tags) rather than a plain list. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Make %catalog execute immediately and round out its verb set
Both magics now share one _print_help_table/_help_table_html implementation instead of %ingest help printing a plain ASCII Python-signature listing. Also fixes a couple of stale leftovers from earlier renames: a tag(...) example in %%catalog's docstring and the ingest example notebook's description of help's old output format. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Render %ingest help as the same HTML table %catalog help uses
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
%catalogcalls now commit themselves the moment a cell runs, instead of queueing behind a separate commit step (CatalogSessionstill does the committing/rollback underneath).use(path)/%%catalog use(path)for explicit relative-path context (validated against the catalog,../support for walking up parent paths).get_wiki,get_tags,list,schema,delete_view,delete_table— all erroring on a missing path.copy/move→data_copy/data_move,tag/untag→set_tags/delete_tags; dropsset_metain favor ofset_wiki.%catalog help/%ingest helpnow render as the same HTML table, grouped by verb category (data, table, view, wiki, tags) for%catalog.Test plan
pytest— 348 passedruff check/ruff format --check— clean on touched files🤖 Generated with Claude Code