Closed
Description
Description
Implement a robust Python code autocompletion feature for the Pippy activity to improve the coding experience for learners.
Implementation
- Checks if autocompletion is enabled
- Extracts the current word being typed
- Triggers completion on dot notation (object attributes)
- Filters short words to avoid excessive popups
- Displays suggestions in a popup window
Proposed Enhancements
- Improve performance for larger files
- Add docstring display for functions and methods
- Implement better context-aware filtering
- Add keyboard navigation in the completion popup
- Support different completion types (variables, functions, keywords)
- Add visual indicators for different completion types
- Implement smart indentation based on context
Benefits
- Improves learning experience for beginners
- Reduces syntax errors through suggestions
- Helps discover available methods and functions
- Makes Python programming more accessible to learners
Technical Implementation
The enhancement will build on the new python autocompletion class and trigger_completion
method in notebook.py
, improving its robustness and user experience.
Kindly review the issue @walterbender @chimosky @kshitijdshah99
Related PRs/Issues
Working on it
Metadata
Metadata
Assignees
Labels
No labels