MCPcopy Create free account
hub / github.com/mlco2/codecarbon / shell

Function shell

carbonserver/initial_data.py:37–45  ·  view source on GitHub ↗
(db)

Source from the content-addressed store, hash-verified

35
36# flake8: noqa
37def shell(db):
38 if settings.environment not in ("develop", "local"):
39 raise Exception("This script must be run in develop environment")
40
41 logger.info("Checking initial data...")
42 with db.session() as session:
43 import IPython
44
45 IPython.embed()
46
47
48def main() -> None:

Callers

nothing calls this directly

Calls 1

sessionMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…