##// END OF EJS Templates
refactor to improve cell switching in edit mode...
refactor to improve cell switching in edit mode This code was repeated in both CodeCell and TextCell, both of which are extensions of Cell, so this just unifies the logic in Cell. TextCell had logic here to check if the cell was rendered or not, but I don't believe it is possible to end up triggering such a code path. (Should that be required, I can always just add back these methods to TextCell, performing the .rendered==True check, and calling the Cell prior to this, code mirror at_top would only return true on if the cursor was at the first character of the top line. Now, pressing up arrow on any character on the top line will take you to the cell above. The same applies for the bottom line. Pressing down arrow would only go to the next cell if the cursor was at a location *after* the last character (something that is only possible to achieve in vim mode if the last line is empty, for example). Now, down arrow on any character of the last line will go to the next cell.

File last commit:

r13750:04e89e46
r15754:d60e793e
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: http://ipython.org
.. _`ipython manual`: http://ipython.org/documentation.html
.. _ipython_github: http://github.com/ipython/ipython/
.. _ipython_github_repo: http://github.com/ipython/ipython/
.. _ipython_downloads: http://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: http://www.pythonxy.com
.. _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