MCPcopy Create free account
hub / github.com/Kaggle/docker-python / get_exportable_ipynb

Method get_exportable_ipynb

patches/kaggle_session.py:16–26  ·  view source on GitHub ↗

Fetch the .ipynb source of the current notebook session. If Kaggle datasets are attached to the notebook, the source will include an additonnal cell with logic to download the datasets outside the Kaggle platform.

(self)

Source from the content-addressed store, hash-verified

14 self.web_client = KaggleWebClient()
15
16 def get_exportable_ipynb(self):
17 """Fetch the .ipynb source of the current notebook session.
18
19 If Kaggle datasets are attached to the notebook, the source will
20 include an additonnal cell with logic to download the datasets
21 outside the Kaggle platform.
22 """
23 request_body = {
24 'UseDraft': True,
25 }
26 return self.web_client.make_post_request(request_body, self.GET_SOURCE_ENDPOINT)

Callers 1

call_get_ipynbMethod · 0.95

Calls 1

make_post_requestMethod · 0.80

Tested by 1

call_get_ipynbMethod · 0.76