Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"outputs": [],
"source": [
"%%capture\n",
"%pip install git+https://github.com/gretelai/gretel-python-client"
"%pip install -U gretel_client"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"outputs": [],
"source": [
"%%capture\n",
"%pip install git+https://github.com/gretelai/gretel-python-client"
"%pip install -U gretel_client"
]
},
{
Expand Down Expand Up @@ -71,7 +71,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 2,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -304,7 +304,7 @@
],
"metadata": {
"kernelspec": {
"display_name": ".venv",
"display_name": "base_env",
"language": "python",
"name": "python3"
},
Expand All @@ -318,7 +318,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.9"
"version": "3.12.9"
}
},
"nbformat": 4,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"outputs": [],
"source": [
"%%capture\n",
"%pip install git+https://github.com/gretelai/gretel-python-client datasets"
"%pip install -U gretel_client datasets"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"outputs": [],
"source": [
"%%capture\n",
"%pip install git+https://github.com/gretelai/gretel-python-client"
"%pip install -U gretel_client"
]
},
{
Expand Down Expand Up @@ -330,7 +330,7 @@
"provenance": []
},
"kernelspec": {
"display_name": ".venv",
"display_name": "base_env",
"language": "python",
"name": "python3"
},
Expand All @@ -344,7 +344,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.9"
"version": "3.12.9"
}
},
"nbformat": 4,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
"outputs": [],
"source": [
"%%capture\n",
"%pip install -U datasets git+https://github.com/gretelai/gretel-python-client@main"
"%pip install -U gretel_client"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@
"outputs": [],
"source": [
"%%capture\n",
"# Install the latest version of Gretel client and dependencies\n",
"%pip install -U git+https://github.com/gretelai/gretel-python-client@main"
"%pip install -U gretel_client"
]
},
{
Expand Down
3 changes: 1 addition & 2 deletions docs/notebooks/data-designer/forms/w2-dataset.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@
"outputs": [],
"source": [
"%%capture\n",
"# Install the latest version of Gretel client and dependencies\n",
"%pip install -U git+https://github.com/gretelai/gretel-python-client"
"%pip install -U gretel_client"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@
"outputs": [],
"source": [
"%%capture\n",
"# Install required packages\n",
"%pip install -U git+https://github.com/gretelai/gretel-python-client@main"
"%pip install -U gretel_client"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@
"outputs": [],
"source": [
"%%capture\n",
"# Install required packages\n",
"%pip install -U git+https://github.com/gretelai/gretel-python-client@main"
"%pip install -U gretel_client"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@
"outputs": [],
"source": [
"%%capture\n",
"# Install the latest version of Gretel client and dependencies\n",
"%pip install -U git+https://github.com/gretelai/gretel-python-client@main datasets"
"%pip install -U gretel_client datasets"
]
},
{
Expand Down Expand Up @@ -106,7 +105,7 @@
"aidd.with_seed_dataset(\n",
" df_seed,\n",
" sampling_strategy=\"shuffle\", # \"ordered\"\n",
" with_replacement=False\n",
" with_replacement=True\n",
")\n",
"\n",
"# Create a couple random person samplers. For now, the\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@
"outputs": [],
"source": [
"%%capture\n",
"# Install the latest version of Gretel client and dependencies\n",
"%pip install -U git+https://github.com/gretelai/gretel-python-client@main"
"%pip install -U gretel_client"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,18 +49,20 @@
{
"cell_type": "code",
"execution_count": 1,
"id": "e79c0cb8",
"metadata": {
"id": "h8RI8LG0igeo"
},
"outputs": [],
"source": [
"%%capture\n",
"!pip install -U git+https://github.com/gretelai/gretel-python-client@main"
"%pip install -U gretel_client"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "9515a3ca",
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
Expand All @@ -80,6 +82,7 @@
},
{
"cell_type": "markdown",
"id": "dedb3311",
"metadata": {},
"source": [
"## Defining Data Structures\n",
Expand All @@ -90,6 +93,7 @@
{
"cell_type": "code",
"execution_count": 3,
"id": "34f67410",
"metadata": {
"id": "l5q7YysHji8O"
},
Expand Down Expand Up @@ -131,6 +135,7 @@
},
{
"cell_type": "markdown",
"id": "71100fa2",
"metadata": {},
"source": [
"## Data Generation Workflow\n",
Expand All @@ -141,6 +146,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "b479cb8d",
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -253,6 +259,7 @@
},
{
"cell_type": "markdown",
"id": "7889e108",
"metadata": {},
"source": [
"## Generate the Preview\n",
Expand All @@ -263,24 +270,27 @@
{
"cell_type": "code",
"execution_count": null,
"id": "dd720c77",
"metadata": {},
"outputs": [],
"source": [
"# Preview the generated data\n",
"outs = aidd.preview()"
"preview = aidd.preview()"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "71703fb8",
"metadata": {},
"outputs": [],
"source": [
"outs.display_sample_record()"
"preview.display_sample_record()"
]
},
{
"cell_type": "markdown",
"id": "bd9947ce",
"metadata": {},
"source": [
"## Viewing the Dataset\n",
Expand All @@ -291,14 +301,16 @@
{
"cell_type": "code",
"execution_count": null,
"id": "5b053c27",
"metadata": {},
"outputs": [],
"source": [
"outs.dataset.df"
"preview.dataset.df"
]
},
{
"cell_type": "markdown",
"id": "5b179bfc",
"metadata": {},
"source": [
"## Generating the Full Dataset\n",
Expand All @@ -309,6 +321,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "aff05efd",
"metadata": {
"id": "HrRvPXoyTFLn"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"outputs": [],
"source": [
"# Install required libraries\n",
"!pip install -qq langchain smart_open git+https://github.com/gretelai/gretel-python-client@main\n",
"!pip install -qq langchain smart_open gretel_client\n",
"!pip install 'unstructured[pdf]'"
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@
"outputs": [],
"source": [
"%%capture\n",
"# Install the latest version of Gretel client and dependencies\n",
"%pip install -U git+https://github.com/gretelai/gretel-python-client@main"
"%pip install -U gretel_client"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@
"outputs": [],
"source": [
"%%capture\n",
"# Install the latest version of Gretel client and dependencies\n",
"%pip install -U git+https://github.com/gretelai/gretel-python-client@main"
"%pip install -U gretel_client"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@
"outputs": [],
"source": [
"%%capture\n",
"# # Install the latest version of Gretel client and dependencies\n",
"%pip install -U git+https://github.com/gretelai/gretel-python-client@main"
"%pip install -U gretel_client"
]
},
{
Expand Down
18 changes: 3 additions & 15 deletions docs/notebooks/data-designer/text-to-code/text-to-sql.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@
"outputs": [],
"source": [
"%%capture\n",
"# Install the latest version of Gretel client and dependencies\n",
"%pip install -U git+https://github.com/gretelai/gretel-python-client@main"
"%pip install -U gretel_client"
]
},
{
Expand All @@ -51,20 +50,9 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": null,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Found cached Gretel credentials\n",
"Logged in as kirit.thadaka@gretel.ai ✅\n",
"Using project: default-sdk-project-1b613ec72030408\n",
"Project link: https://console-eng.gretel.ai/proj_2uY0cfM0kjiegpyEZvCHNKZYxGf\n"
]
}
],
"outputs": [],
"source": [
"# Initialize Gretel client and Data Designer\n",
"gretel = Gretel(api_key=\"prompt\")\n",
Expand Down