Skip to content

Commit

Permalink
Github Action: Lint Notebooks
Browse files Browse the repository at this point in the history
  • Loading branch information
github-action authored and John Turner committed Nov 1, 2024
1 parent 324e45f commit e55c45e
Showing 1 changed file with 16 additions and 120 deletions.
136 changes: 16 additions & 120 deletions reference_notebooks/start-gui-server.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@
"cells": [
{
"cell_type": "code",
"execution_count": 17,
"execution_count": null,
"id": "4f80ce0b-c291-4d4a-aaa9-6a62f5cb61bd",
"metadata": {
"tags": []
},
"metadata": {},
"outputs": [],
"source": [
"import subprocess\n",
Expand All @@ -28,11 +26,9 @@
},
{
"cell_type": "code",
"execution_count": 18,
"execution_count": null,
"id": "7280cecd-7c37-414a-9f36-78b2e7eeb967",
"metadata": {
"tags": []
},
"metadata": {},
"outputs": [],
"source": [
"url = \"http://metadata.google.internal/computeMetadata/v1/project/project-id\"\n",
Expand All @@ -43,14 +39,9 @@
},
{
"cell_type": "code",
"execution_count": 19,
"execution_count": null,
"id": "cb07eb82-122b-40ad-aa51-631d4650a8ee",
"metadata": {
"jupyter": {
"source_hidden": true
},
"tags": []
},
"metadata": {},
"outputs": [],
"source": [
"def wait_for_extended_operation(\n",
Expand Down Expand Up @@ -130,32 +121,10 @@
},
{
"cell_type": "code",
"execution_count": 24,
"execution_count": null,
"id": "5bc64703-823c-4b51-9e40-a3c2ed09998d",
"metadata": {
"tags": []
},
"outputs": [
{
"data": {
"application/javascript": [
"// Send data\n",
"\n",
"fetch( 'https://api64.ipify.org/')\n",
" .then(\n",
" response => response.text()\n",
" ).then(\n",
" text => element.append(\"ip='\"+text+\"'\")\n",
" );\n"
],
"text/plain": [
"<IPython.core.display.Javascript object>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"metadata": {},
"outputs": [],
"source": [
"%%javascript\n",
"// Send data\n",
Expand All @@ -170,11 +139,9 @@
},
{
"cell_type": "code",
"execution_count": 25,
"execution_count": null,
"id": "2f528cb1-7c20-4daa-9dd6-726eccecf566",
"metadata": {
"tags": []
},
"metadata": {},
"outputs": [],
"source": [
"ip='128.231.234.47'"
Expand Down Expand Up @@ -208,55 +175,10 @@
},
{
"cell_type": "code",
"execution_count": 26,
"execution_count": null,
"id": "7adfc414-112a-4d32-8fb2-4ff2c6fabd0d",
"metadata": {
"tags": []
},
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "61e65e7e214047e8ad514008110a96c0",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"Dropdown(description='GUI:', options=('bandage', 'pymol', 'molbobity'), value='bandage')"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "7d0f5644e07b4ecfaf4ce51ad6528c1f",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"Button(description='Start Gui', style=ButtonStyle())"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "eae09f2d13cd41e9a04bd301d2b80435",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"Output()"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"metadata": {},
"outputs": [],
"source": [
"\n",
"w = widgets.Dropdown(\n",
Expand Down Expand Up @@ -311,40 +233,14 @@
"cell_type": "code",
"execution_count": null,
"id": "23702d79-3dee-45e4-9401-c6614c66fce8",
"metadata": {
"tags": []
},
"metadata": {},
"outputs": [],
"source": [
"delete_instance(zone='us-east4-a',machine_name=server_name)"
]
}
],
"metadata": {
"environment": {
"kernel": "conda-base-py",
"name": "workbench-notebooks.m125",
"type": "gcloud",
"uri": "us-docker.pkg.dev/deeplearning-platform-release/gcr.io/workbench-notebooks:m125"
},
"kernelspec": {
"display_name": "Python 3 (ipykernel) (Local)",
"language": "python",
"name": "conda-base-py"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.15"
}
},
"metadata": {},
"nbformat": 4,
"nbformat_minor": 5
}

0 comments on commit e55c45e

Please sign in to comment.