client.notebooks.post_clone
A method of the Notebooks endpoint.
- post_clone(id: int) Response
Clone this Notebook
API URL:
POST /notebooks/{id}/cloneimport civis client = civis.APIClient() response = client.notebooks.post_clone(...)
- Parameters:
- idint
- Returns:
civis.Response- idint
The ID for this notebook.
- namestr
The name of this notebook.
- languagestr
The kernel language of this notebook (“python3” or “r”). Defaults to “python3”.
- descriptionstr
The description of this notebook.
- notebook_urlstr
Time-limited URL to get the .ipynb file for this notebook.
- notebook_preview_urlstr
Time-limited URL to get the .htm preview file for this notebook.
- requirements_urlstr
Time-limited URL to get the requirements.txt file for this notebook.
- file_idstr
The file ID for the S3 file containing the .ipynb file.
- requirements_file_idstr
The file ID for the S3 file containing the requirements.txt file.
- user
civis.Response - idint
The ID of this user.
- namestr
This user’s name.
- usernamestr
This user’s username.
- initialsstr
This user’s initials.
- onlinebool
Whether this user is online.
- user
- docker_image_namestr
The name of the docker image to pull from DockerHub.
- docker_image_tagstr
The tag of the docker image to pull from DockerHub (default: latest).
- instance_typestr
The EC2 instance type to deploy to.
- memoryint
The amount of memory allocated to the notebook.
- cpuint
The amount of cpu allocated to the the notebook.
created_at : str (time)
updated_at : str (time)
- most_recent_deployment
civis.Response - deployment_idint
The ID for this deployment.
- user_idint
The ID of the owner.
- hoststr
Domain of the deployment.
- namestr
Name of the deployment.
- docker_image_namestr
The name of the docker image to pull from DockerHub.
- docker_image_tagstr
The tag of the docker image to pull from DockerHub (default: latest).
- display_urlstr
A signed URL for viewing the deployed item.
- instance_typestr
The EC2 instance type requested for the deployment.
- memoryint
The memory allocated to the deployment, in MB.
- cpuint
The cpu allocated to the deployment, in millicores.
- statestr
The state of the deployment. One of pending, running, terminated or sleeping.
- state_messagestr
A detailed description of the state.
- max_memory_usagefloat (float)
If the deployment has finished, the maximum amount of memory used during the deployment, in MB.
- max_cpu_usagefloat (float)
If the deployment has finished, the maximum amount of cpu used during the deployment, in millicores.
created_at : str (time)
updated_at : str (time)
- notebook_idint
The ID of the owning Notebook
- most_recent_deployment
- credentialsList[
civis.Response] The credentials attached to the notebook. Accepts a list of credential IDs and returns a list of id, name pairs.
- idint
The ID of the credential.
- namestr
The name of the credential.
- credentialsList[
- environment_variables
civis.Response Environment variables to be passed into the Notebook.
- environment_variables
- idle_timeoutint
How long the notebook will stay alive without any kernel activity.
- partition_labelstr
The partition label used to run this object.
- git_repo_idint
The ID of the git repository.
- git_repo_urlstr
The URL of the git repository (e.g., https://github.com/organization/repo_name.git).
- git_refstr
The git reference if git repo is specified
- git_pathstr
The path to the .ipynb file in the git repo that will be started up on notebook launch
- my_permission_levelstr
Your permission level on the object. One of “read”, “write”, or “manage”.
- archivedbool
The archival status of the requested item(s).
- hiddenbool
The hidden status of the item.