##// 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:

r24425:3deabdbd
r25566:5d39b579
Show More
links.txt
101 lines | 4.3 KiB | text/plain | TextLexer
.. This (-*- rst -*-) format file contains commonly used link targets
and name substitutions. It may be included in many files,
therefore it should only contain link targets and name
substitutions. Try grepping for "^\.\. _" to find plausible
candidates for this list.
NOTE: this file must have an extension *opposite* to that of the main reST
files in the manuals, so that we can include it with ".. include::"
directives, but without triggering warnings from Sphinx for not being listed
in any toctree. Since IPython uses .txt for the main files, this one will
use .rst.
NOTE: reST targets are
__not_case_sensitive__, so only one target definition is needed for
ipython, IPython, etc.
NOTE: Some of these were taken from the nipy links compendium.
.. Main IPython links
.. _ipython: https://ipython.org
.. _`ipython manual`: https://ipython.org/documentation.html
.. _ipython_github: http://github.com/ipython/ipython/
.. _ipython_github_repo: http://github.com/ipython/ipython/
.. _ipython_downloads: https://ipython.org/download.html
.. _ipython_pypi: http://pypi.python.org/pypi/ipython
.. _nbviewer: http://nbviewer.ipython.org
.. _ZeroMQ: http://zeromq.org
.. Documentation tools and related links
.. _graphviz: http://www.graphviz.org
.. _Sphinx: http://sphinx.pocoo.org
.. _`Sphinx reST`: http://sphinx.pocoo.org/rest.html
.. _sampledoc: http://matplotlib.org/sampledoc
.. _reST: http://docutils.sourceforge.net/rst.html
.. _docutils: http://docutils.sourceforge.net
.. _lyx: http://www.lyx.org
.. _pep8: http://www.python.org/dev/peps/pep-0008
.. _numpy_coding_guide: https://github.com/numpy/numpy/blob/master/doc/HOWTO_DOCUMENT.rst.txt
.. Licenses
.. _GPL: http://www.gnu.org/licenses/gpl.html
.. _BSD: http://www.opensource.org/licenses/bsd-license.php
.. _LGPL: http://www.gnu.org/copyleft/lesser.html
.. Other python projects
.. _numpy: http://numpy.scipy.org
.. _scipy: http://www.scipy.org
.. _scipy_conference: http://conference.scipy.org
.. _matplotlib: http://matplotlib.org
.. _pythonxy: https://code.google.com/p/pythonxy/
.. _ETS: http://code.enthought.com/projects/tool-suite.php
.. _EPD: http://www.enthought.com/products/epd.php
.. _python: http://www.python.org
.. _mayavi: http://code.enthought.com/projects/mayavi
.. _sympy: http://code.google.com/p/sympy
.. _sage: http://sagemath.org
.. _pydy: http://code.google.com/p/pydy
.. _vpython: http://vpython.org
.. _cython: http://cython.org
.. _software carpentry: http://software-carpentry.org
.. Not so python scientific computing tools
.. _matlab: http://www.mathworks.com
.. _VTK: http://vtk.org
.. Other organizations
.. _enthought: http://www.enthought.com
.. _kitware: http://www.kitware.com
.. _netlib: http://netlib.org
.. Other tools and projects
.. _indefero: http://www.indefero.net
.. _git: http://git-scm.com
.. _github: http://github.com
.. _Markdown: http://daringfireball.net/projects/markdown/syntax
.. _Running Code in the IPython Notebook: notebook_p1_
.. _notebook_p1: http://nbviewer.ipython.org/urls/raw.github.com/ipython/ipython/1.x/examples/notebooks/Part%25201%2520-%2520Running%2520Code.ipynb
.. _Basic Output: notebook_p2_
.. _notebook_p2: http://nbviewer.ipython.org/urls/raw.github.com/ipython/ipython/1.x/examples/notebooks/Part%202%20-%20Basic%20Output.ipynb
.. _Plotting with Matplotlib: notebook_p3_
.. _notebook_p3: http://nbviewer.ipython.org/urls/raw.github.com/ipython/ipython/1.x/examples/notebooks/Part%203%20-%20Plotting%20with%20Matplotlib.ipynb
.. _Markdown Cells: notebook_p4_
.. _notebook_p4: http://nbviewer.ipython.org/urls/raw.github.com/ipython/ipython/1.x/examples/notebooks/Part%204%20-%20Markdown%20Cells.ipynb
.. _Rich Display System: notebook_p5_
.. _notebook_p5: http://nbviewer.ipython.org/urls/raw.github.com/ipython/ipython/1.x/examples/notebooks/Part%205%20-%20Rich%20Display%20System.ipynb
.. _notebook_custom_display: http://nbviewer.ipython.org/urls/raw.github.com/ipython/ipython/1.x/examples/notebooks/Custom%20Display%20Logic.ipynb
.. _Frontend/Kernel Model: notebook_two_proc_
.. _notebook_two_proc: http://nbviewer.ipython.org/urls/raw.github.com/ipython/ipython/1.x/examples/notebooks/Frontend-Kernel%20Model.ipynb
.. _Cell magics: notebook_cell_magics_
.. _notebook_cell_magics: http://nbviewer.ipython.org/urls/raw.github.com/ipython/ipython/1.x/examples/notebooks/Cell%20Magics.ipynb