Using the API¶
Everything you can do in the web app, you can do from a script. This is the difference between recording twelve samples and recording twelve hundred.
-
Generate an API key and keep it out of your notebooks.
-
pip install datalab-api, connect, list items. -
Bulk creation, file upload, pulling block data into a plot.
-
For when you are not writing Python.
Probe first, assume nothing
Because item types, blocks and populated fields vary between instances, scripts that are meant to be shared should ask the server what exists rather than hardcoding it.