MCPcopy Create free account
hub / github.com/ipython/ipython / set_autoindent

Method set_autoindent

IPython/core/interactiveshell.py:716–723  ·  view source on GitHub ↗

Set the autoindent flag. If called with no arguments, it acts as a toggle.

(self,value=None)

Source from the content-addressed store, hash-verified

714 ensure_dir_exists(change['new'])
715
716 def set_autoindent(self,value=None):
717 """Set the autoindent flag.
718
719 If called with no arguments, it acts as a toggle."""
720 if value is None:
721 self.autoindent = not self.autoindent
722 else:
723 self.autoindent = value
724
725 def set_trio_runner(self, tr):
726 self.trio_runner = tr

Callers 1

autoindentMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected