Akshit Kumar's index.html

emacs python repl fix

The default uv python install uses libedit readline which doesn’t work well with emacs.

Fix

  • pip install gnureadline
  • python3 -m override_readline
  • might have to remove __file__ from override_readline.py, this has been solved already here but not merged yet.
  • this should make the repl use gnureadline.
  • final check
    import readline
    print(readline.__doc__)
    

    should print 'Importing this module enables command line editing using GNU readline.'.