Read a Jupyter Notebook or Directory¶
Use this API to list the content of a Jupyter notebook or a directory.
This API is not available by default. Create a ticket with Qubole Support to enable this API on your QDS account.
The following users can make this API call:
|Path||Location of the Jupyter notebook or directory.|
|Name||Name of the Jupyter notebook with extension (
Request API Syntax¶
curl -i -X GET -H "X-AUTH-TOKEN: <token>" -H "Content-Type: application/json" -H "Accept: application/json" \ "https://api.qubole.com/api/v1.2/jupyter_notebooks/contents/<Path>/<Name>"
The above syntax uses https://api.qubole.com as the endpoint. Qubole provides other endpoints to access QDS that are described in Supported Qubole Endpoints on Different Cloud Providers.
Sample API Request¶
The following example shows how to list the content of a Jupyter notebook:
curl -i -X GET -H "X-AUTH-TOKEN: <token>" -H "Content-Type: application/json" -H "Accept: application/json" \ "https://api.qubole.com/api/v1.2/jupyter_notebooks/contents/Users/[email protected]/note1.ipynb"