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.
-
Create an API key and keep it out of your notebooks.
-
pip install datalab-api, connect, list items. -
Bulk creation, file upload, and getting data back out.
-
For when you are not writing Python.
The full reference for the Python client is at api-docs.datalab-org.io. The server's REST API is described in the main documentation.
Ask the server, do not assume
Item types, blocks and fields vary between instances. Scripts that will be shared should ask the server what exists, rather than hardcoding it. See Find out what your instance supports.