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

Method new_module

IPython/extensions/tests/test_autoreload.py:117–122  ·  view source on GitHub ↗
(self, code)

Source from the content-addressed store, hash-verified

115 f.write(content)
116
117 def new_module(self, code):
118 code = textwrap.dedent(code)
119 mod_name, mod_fn = self.get_module()
120 with open(mod_fn, 'w') as f:
121 f.write(code)
122 return mod_name, mod_fn
123
124#-----------------------------------------------------------------------------
125# Test automatic reloading

Callers 4

test_reload_enumsMethod · 0.80
_check_smoketestMethod · 0.80

Calls 2

get_moduleMethod · 0.95
writeMethod · 0.45

Tested by

no test coverage detected