Skip to content

Interactive Prompt Enhancement #68

@cindytsai

Description

@cindytsai

Interactive Prompt Enhancement

Some issues known or enhancement to add while implementing reloading script feature (#60). These will be fixed in the later update. Or we probably can ignore it when we have done supporting Jupyter Notebook access.

Known Issues

  • If one rank failed and the other ranks are calling collective functions, then this leads to a deadlock.
    • Python coroutine (?)
    • Each rank create another thread to handle failure from other ranks.

Enhancement

  • Colorful python prompt terminal
  • Smart indent
  • Able to change previous lines inputs or use arrow keys to move between characters.
  • Drop unused keys in builtin. (ex: exit())
  • Make result from directly input in prompt print in order.
  • Assigning a functor directly to a variable through interactive prompt cannot be detected by libyt, since it create an empty space for code to run and detect. (Not sure do I really need this)
    • (This can't be detect) Ex: f = np.random.rand
    • (This can be detect)
      def f():
          return np.random.rand
      
  • Cannot use different triple quotes when inputting function arguments in yt_run_FunctionArguments or %libyt run func args

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementEnhancement on top of existing features.entry pointAn entry point that provides a user interface.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions