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

Function on_off

IPython/core/magic.py:53–55  ·  view source on GitHub ↗

Return an ON/OFF string for a 1/0 input. Simple utility function.

(tag)

Source from the content-addressed store, hash-verified

51
52
53def on_off(tag):
54 """Return an ON/OFF string for a 1/0 input. Simple utility function."""
55 return ['OFF','ON'][tag]
56
57
58def compress_dhist(dh):

Callers 1

pdbMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected