MCPcopy Create free account
hub / github.com/ipython/traitlets / PrintHello

Class PrintHello

examples/subcommands_app.py:22–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20
21
22class PrintHello(Configurable):
23 greet_name = Unicode("world").tag(config=True)
24 greeting = Enum(values=["hello", "hi", "bye"], default_value="hello").tag(config=True)
25
26 def run(self):
27 print(f"{self.greeting} {self.greet_name}")
28
29
30class FooApp(Application):

Callers 2

startMethod · 0.85
startMethod · 0.85

Calls 3

UnicodeClass · 0.90
EnumClass · 0.90
tagMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…