MCPcopy Create free account
hub / github.com/datapane/datapane / PapermillEnvironment

Class PapermillEnvironment

python-client/src/datapane/ipython/environment.py:249–260  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

247
248
249class PapermillEnvironment(IPythonZMQEnvironment):
250 name = "Papermill Environment"
251
252 def _get_notebook_path(self) -> Path:
253 user_ns = get_ipython_user_ns()
254 if path := user_ns.get("PAPERMILL_OUTPUT_PATH", None):
255 return Path(path)
256 return super()._get_notebook_path()
257
258 @cached_property
259 def support_rich_display(self) -> bool: # type: ignore[override]
260 return get_ipython_user_ns().get("DP_SERVER_RUNNER", False)

Callers 1

_get_environmentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected