##// END OF EJS Templates
Pass tempfile_suffix argument to PromptSession....
Pass tempfile_suffix argument to PromptSession. This ensures that when the open_in_editor() method of the current buffer (a prompt_toolkit.buffer.Buffer) is called, the tempfile opened in the editor will always have a .py extension, to support editor syntax highlighting. The open_input_in_editor(event) function associated with the f2 keybinding manually sets the tempfile_suffix property of the current buffer before calling its open_in_editor() method. The vi keybinding (v) and emacs mode keybinding (c-x c-e) are handled by prompt_toolkit directly, bypassing this function, so the tempfile created when they are used is a .txt file. Passing the tempfile_suffix argument to the PrompSession constructor ensures that .py extension is always used.

File last commit:

r24722:2e22c3ee
r25566:5d39b579
Show More
requirements.txt
7 lines | 75 B | text/plain | TextLexer
/ docs / requirements.txt
Matthias Bussonnier
fix docs requirement that prevent RTD to build
r22635 -e .
Min RK
add ipykernel to docs requirements
r21591 ipykernel
Matthias Bussonnier
Fix Docs building
r22001 setuptools>=18.5
Olesya Baranova
Removed extra dependencies
r24064 sphinx
Olesya Baranova
Changing files per example in Jupyter repo
r24057 sphinx-rtd-theme
Olesya Baranova
Adding necessary module used for building docs to get rid of WARNING: error while formatting arguments for IPython.core.interactiveshell.sphinxify
r24066 docrepr
Matthias Bussonnier
install matplotlib to build docs
r24722 matplotlib