Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ipython/traitlets
/ init_foo
Method
init_foo
examples/myapp.py:118–120 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
116
)
117
118
def
init_foo(self):
119
# You can pass self as parent to automatically propagate config.
120
self.foo = Foo(parent=self)
121
122
def
init_bar(self):
123
# Pass config to other classes for them to inherit the config.
Callers
1
initialize
Method · 0.95
Calls
1
Foo
Class · 0.70
Tested by
no test coverage detected