Skip to content

Python Autocompletion Enhancement #105

Closed
@AdityaShome

Description

@AdityaShome

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions