Skip to content

Commit 33ddb97

Browse files
authored
Notebook edits (#144)
* demo service wip * Fixed notebooks * cleanup for PR * styling & cleanup * Replace %openadd with %openad in Generation.ipynb
1 parent 0357637 commit 33ddb97

13 files changed

Lines changed: 1363 additions & 150 deletions

openad/notebooks/Bio_Medical_Properties.ipynb

Lines changed: 192 additions & 6 deletions
Large diffs are not rendered by default.

openad/notebooks/Common_Client_Intro.ipynb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"cells": [
33
{
44
"cell_type": "code",
5-
"execution_count": 43,
5+
"execution_count": 1,
66
"id": "6b8a0da0-f81c-4872-8ac0-081189c73d35",
77
"metadata": {
88
"tags": []
@@ -941,7 +941,7 @@
941941
"# %openad clear sessions\n",
942942
"# %openad create workspace foobar\n",
943943
"# %openad set workspace default\n",
944-
"%openad copy file 'imported_molecules.csv' to '~/foobar'"
944+
"%openad copy 'imported_molecules.csv' to '~/foobar'"
945945
]
946946
},
947947
{
@@ -1148,9 +1148,9 @@
11481148
],
11491149
"metadata": {
11501150
"kernelspec": {
1151-
"display_name": "ad-venv",
1151+
"display_name": "test_venv",
11521152
"language": "python",
1153-
"name": "ad-venv"
1153+
"name": "test_venv"
11541154
},
11551155
"language_info": {
11561156
"codemirror_mode": {
@@ -1162,7 +1162,7 @@
11621162
"name": "python",
11631163
"nbconvert_exporter": "python",
11641164
"pygments_lexer": "ipython3",
1165-
"version": "3.11.11"
1165+
"version": "3.11.9"
11661166
}
11671167
},
11681168
"nbformat": 4,

openad/notebooks/Demonstration.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"cells": [
33
{
44
"cell_type": "code",
5-
"execution_count": 47,
5+
"execution_count": 1,
66
"id": "cfd86401-463d-4ba2-92ba-d4764ef72ee4",
77
"metadata": {
88
"tags": []
@@ -1107,9 +1107,9 @@
11071107
],
11081108
"metadata": {
11091109
"kernelspec": {
1110-
"display_name": "ad-venv",
1110+
"display_name": "test_venv",
11111111
"language": "python",
1112-
"name": "ad-venv"
1112+
"name": "test_venv"
11131113
},
11141114
"language_info": {
11151115
"codemirror_mode": {
@@ -1121,7 +1121,7 @@
11211121
"name": "python",
11221122
"nbconvert_exporter": "python",
11231123
"pygments_lexer": "ipython3",
1124-
"version": "3.11.11"
1124+
"version": "3.11.9"
11251125
}
11261126
},
11271127
"nbformat": 4,

openad/notebooks/End_to_End.ipynb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"cells": [
33
{
44
"cell_type": "code",
5-
"execution_count": 27,
5+
"execution_count": 1,
66
"id": "684f2227-0d30-4f9f-88b2-08eade6ae0ac",
77
"metadata": {
88
"tags": []
@@ -466,9 +466,9 @@
466466
"patented_molecules = []\n",
467467
"for result in datasets:\n",
468468
" for mol in result[\"0\"].to_list():\n",
469-
" x = %openadd search for patents containing molecule '{mol}'\n",
469+
" x = %openadd ds search for patents containing molecule '{mol}'\n",
470470
" if isinstance(x, DataFrame):\n",
471-
" patents_to_search.extend(x[\"PATENT ID\"].to_list())\n",
471+
" patents_to_search.extend(x[\"application_id\"].to_list())\n",
472472
" patented_molecules.append(mol)\n",
473473
"\n",
474474
"str(patents_to_search)"
@@ -522,10 +522,10 @@
522522
" \"esol\",\n",
523523
"]\n",
524524
"\n",
525-
"new_props = %openadd propd get molecule property {properties_all} for {patented_molecules}\n",
525+
"new_props = %openadd prop get molecule property {properties_all} for {patented_molecules}\n",
526526
"\n",
527527
"for x in patented_molecules:\n",
528-
" %openad add molecule {x} Force\n",
528+
" %openad add molecule {x} force\n",
529529
"\n",
530530
"%openad merge molecules data using dataframe new_props\n",
531531
"%openad enrich molecules with analysis"
@@ -579,9 +579,9 @@
579579
],
580580
"metadata": {
581581
"kernelspec": {
582-
"display_name": "ad-venv",
582+
"display_name": "test_venv",
583583
"language": "python",
584-
"name": "ad-venv"
584+
"name": "test_venv"
585585
},
586586
"language_info": {
587587
"codemirror_mode": {

openad/notebooks/Generation_Models.ipynb

Lines changed: 194 additions & 8 deletions
Large diffs are not rendered by default.

openad/notebooks/Slide_Show.ipynb

Lines changed: 191 additions & 8 deletions
Large diffs are not rendered by default.

openad/notebooks/Table_of_Contents.ipynb

Lines changed: 190 additions & 14 deletions
Large diffs are not rendered by default.

openad/notebooks/Untitled.ipynb

Lines changed: 0 additions & 63 deletions
This file was deleted.

openad/notebooks/magic_commands.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"cells": [
33
{
44
"cell_type": "code",
5-
"execution_count": 7,
5+
"execution_count": 1,
66
"id": "93aa997a-e74f-4412-915f-68a4ba8cd536",
77
"metadata": {
88
"tags": []
@@ -322,9 +322,9 @@
322322
],
323323
"metadata": {
324324
"kernelspec": {
325-
"display_name": "ad-venv",
325+
"display_name": "test_venv",
326326
"language": "python",
327-
"name": "ad-venv"
327+
"name": "test_venv"
328328
},
329329
"language_info": {
330330
"codemirror_mode": {
@@ -336,7 +336,7 @@
336336
"name": "python",
337337
"nbconvert_exporter": "python",
338338
"pygments_lexer": "ipython3",
339-
"version": "3.11.11"
339+
"version": "3.11.9"
340340
}
341341
},
342342
"nbformat": 4,

openad/notebooks/openad_magic.ipynb

Lines changed: 191 additions & 5 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)