Skip to content
Open
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
49 changes: 39 additions & 10 deletions python/intro/intro.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,24 @@
"For example this is how to connect to the [cBioPortal](https://www.cbioportal.org) API:"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"c:\\codebook\\cbio_env\\Scripts\\python.exe\n"
]
}
],
"source": [
"import sys\n",
"print(sys.executable)"
]
},
{
"cell_type": "code",
"execution_count": 1,
Expand Down Expand Up @@ -124,11 +142,22 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 2,
"metadata": {},
"outputs": [],
"outputs": [
{
"data": {
"text/plain": [
"SwaggerClient(https://www.cbioportal.org/api)"
]
},
"execution_count": 2,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"cbioportal."
"cbioportal"
]
},
{
Expand All @@ -142,22 +171,22 @@
},
{
"cell_type": "code",
"execution_count": 19,
"execution_count": 4,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"<bravado.http_future.HttpFuture at 0x1180fc6a0>"
"<bravado.http_future.HttpFuture at 0x21b07a33b10>"
]
},
"execution_count": 19,
"execution_count": 4,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"cbioportal.Cancer_Types.getAllCancerTypesUsingGET("
"cbioportal.Cancer_Types.getAllCancerTypesUsingGET()"
]
},
{
Expand All @@ -169,7 +198,7 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": 5,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -2117,7 +2146,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"display_name": "cbio_env311",
"language": "python",
"name": "python3"
},
Expand All @@ -2131,7 +2160,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.3"
"version": "3.13.2"
}
},
"nbformat": 4,
Expand Down