Ticket #12719: trac_12719-cellmagics013.patch

File trac_12719-cellmagics013.patch, 687 bytes (added by jason, 9 years ago)

Apply to sage repository

  • sage/misc/interpreter.py

    # HG changeset patch
    # User Jason Grout <jason.grout@drake.edu>
    # Date 1340199961 18000
    # Node ID bd982b40e43782c143af5044ccfae5202950b46b
    # Parent  9a4c6fa8a24b780e12271b4facfc62aa9a22a4e0
    Make a cell_magics_part variable so things work in IPython 0.13.
    
    There are some expectations about input splitters that
    we weren't satisfying before.
    
    diff --git a/sage/misc/interpreter.py b/sage/misc/interpreter.py
    a b  
    740740    # List with lines of raw input accumulated so far.
    741741    _buffer_raw = None
    742742    _magic_interfaces = []
     743    cell_magic_parts = None
    743744   
    744745    def __init__(self, input_mode=None):
    745746        """