~ubuntu-branches/debian/experimental/spyder/experimental

« back to all changes in this revision

Viewing changes to spyderlib/widgets/ipython.py

  • Committer: Package Import Robot
  • Author(s): Picca Frédéric-Emmanuel
  • Date: 2015-03-28 09:12:38 UTC
  • mfrom: (1.1.24)
  • Revision ID: package-import@ubuntu.com-20150328091238-1j3fxmiq39uh26ao
Tags: 2.3.4+dfsg1-1~exp1
* Imported Upstream version 2.3.4+dfsg1
* Updated the copyright file

Show diffs side-by-side

added added

removed removed

Lines of Context:
229
229
        self.execute("%clear")
230
230
        
231
231
    def write_to_stdin(self, line):
232
 
        """
233
 
        Send raw characters to the IPython kernel through stdin
234
 
        but only if the kernel is currently looking for raw input.
235
 
        """
236
 
        if self._reading:
237
 
            try:
238
 
                self.kernel_client.stdin_channel.input(line)
239
 
            except AttributeError:
240
 
                self.kernel_client.input(line)
 
232
        """Send raw characters to the IPython kernel through stdin"""
 
233
        try:
 
234
            self.kernel_client.stdin_channel.input(line)
 
235
        except AttributeError:
 
236
            self.kernel_client.input(line)
241
237
    
242
238
    def set_background_color(self):
243
239
        lightbg_o = CONF.get('ipython_console', 'light_color')