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

Method init_instance_attrs

IPython/core/interactiveshell.py:746–771  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

744 ProfileDir.create_profile_dir_by_name(self.ipython_dir, 'default')
745
746 def init_instance_attrs(self):
747 self.more = False
748
749 # command compiler
750 self.compile = CachingCompiler()
751
752 # Make an empty namespace, which extension writers can rely on both
753 # existing and NEVER being used by ipython itself. This gives them a
754 # convenient location for storing additional information and state
755 # their extensions may require, without fear of collisions with other
756 # ipython names that may develop later.
757 self.meta = Struct()
758
759 # Temporary files used for various purposes. Deleted at exit.
760 self.tempfiles = []
761 self.tempdirs = []
762
763 # keep track of where we started running (mainly for crash post-mortem)
764 # This is not being used anywhere currently.
765 self.starting_dir = os.getcwd()
766
767 # Indentation management
768 self.indent_current_nsp = 0
769
770 # Dict to track post-execution functions that have been registered
771 self._post_execute = {}
772
773 def init_environment(self):
774 """Any changes we need to make to the user's environment."""

Callers 1

__init__Method · 0.95

Calls 2

CachingCompilerClass · 0.90
StructClass · 0.90

Tested by

no test coverage detected