feat: added IPython autocomplete for Metaflow and MetaflowData classes#3071
Conversation
Greptile SummaryThis PR adds IPython tab-completion support to two classes that were missed in PR #1348: Confidence Score: 5/5Safe to merge — two small, well-scoped additions with no logic or security concerns. Both new methods follow an established pattern already in the codebase, have no side effects outside of IPython completion, and the only finding is a missing docstring (P2 style). No files require special attention.
|
| Filename | Overview |
|---|---|
| metaflow/client/core.py | Adds __dir__ to MetaflowData for attribute tab-completion and _ipython_key_completions_ to Metaflow for key tab-completion, both following the pattern already established in MetaflowObject. |
Reviews (2): Last reviewed commit: "Merge branch 'master' into autocomplete-..." | Re-trigger Greptile
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #3071 +/- ##
=========================================
Coverage ? 25.89%
=========================================
Files ? 374
Lines ? 51218
Branches ? 9042
=========================================
Hits ? 13263
Misses ? 37170
Partials ? 785 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
PR Type
Summary
Adds IPython tab-completion support for the
Metaflowclass (Metaflow()['<TAB>']suggests flow names) and theMetaflowDataclass (task.data.<TAB>suggests artifact names). This closes the remaining gaps from issue #1114 after PR #1348 added completions toMetaflowObject.Issue
Fixes #1114
Tests
_ipython_key_completions_and__dir__) that follow the exact same pattern already merged in PR feat: add ipython autocomplete support for MetaflowObject instances #1348. They can be verified interactively in a Jupyter notebook.Non-Goals
Does not add completions for other Metaflow objects since those were already handled by PR #1348.
AI Tool Usage
Claude Sonnet 4.6 was used to explore and help me understand the codebase and identify the gaps.