Skip to content
This repository was archived by the owner on Sep 3, 2022. It is now read-only.

Commit 482efab

Browse files
authored
Merge pull request #8 from parthea/issues/minor_notebook_fixes
Minor fixes to notebooks
2 parents 5c93aa3 + a5381bb commit 482efab

9 files changed

+1159
-1333
lines changed

Readme.ipynb

Lines changed: 2 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,7 @@
3939
"* [**Introduction to Python**](intro/Introduction to Python.ipynb) - Python is essential to working in Cloud Datalab. This notebook provides a quick overview of the Python environment with links to online, in-depth language tutorials (if you're new to Python).\n",
4040
"\n",
4141
"\n",
42-
"* [**Using Cloud Datalab - Accessing Cloud Data**](intro/Using Datalab - Accessing Cloud Data.ipynb) - This notebook briefly describes the Cloud Datalab environment, including how the Cloud Datalab workspace is configured as well as important information about authorization.\n",
43-
"\n",
44-
"\n",
45-
"* [**Using Cloud Datalab - Managing Notebooks with Git**](intro/Using Datalab - Managing Notebooks with Git.ipynb) - This notebook describes Cloud Datalab's integration with git-based notebook management and how you can use the Google Cloud Platform console and local git tools to commit and share your notebooks."
42+
"* [**Using Cloud Datalab - Accessing Cloud Data**](intro/Using Datalab - Accessing Cloud Data.ipynb) - This notebook briefly describes the Cloud Datalab environment, including how the Cloud Datalab workspace is configured as well as important information about authorization."
4643
]
4744
},
4845
{
@@ -147,28 +144,7 @@
147144
"cell_type": "markdown",
148145
"metadata": {},
149146
"source": [
150-
"Cloud Datalab documentation is distributed as notebooks and copied into the source repository of the Cloud project.\n",
151-
"\n",
152-
"You can update the sample content by manually copying notebooks into your repository, then committing those changes. Make sure not to make changes to samples that you don't want to lose or overwrite."
153-
]
154-
},
155-
{
156-
"cell_type": "code",
157-
"execution_count": null,
158-
"metadata": {
159-
"collapsed": false
160-
},
161-
"outputs": [],
162-
"source": [
163-
"%%bash\n",
164-
"gsutil -q cp -r gs://cloud-datalab/content/datalab .."
165-
]
166-
},
167-
{
168-
"cell_type": "markdown",
169-
"metadata": {},
170-
"source": [
171-
"**NOTE**: Once you've run the command, please refresh this notebook (and choose the option to go ahead and refresh even though there are unsaved changes)."
147+
"Cloud Datalab documentation is distributed as notebooks which are automatically updated at time of installation. In order to update, please save all open notebooks, close the running sessions, then re-run the installation script. It will pull the latest notebooks."
172148
]
173149
},
174150
{

samples/Programming Language Correlation.ipynb

Lines changed: 1140 additions & 1150 deletions
Large diffs are not rendered by default.

samples/TensorFlow Machine Learning with Financial Data on Google Cloud Platform.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2534,7 +2534,7 @@
25342534
"output_type": "stream",
25352535
"text": [
25362536
"\n",
2537-
"Copyright 2015, Google, Inc.\n",
2537+
"Copyright 2016, Google, Inc.\n",
25382538
"Licensed under the Apache License, Version 2.0 (the \"License\");\n",
25392539
"you may not use this file except in compliance with the License.\n",
25402540
"You may obtain a copy of the License at\n",
@@ -2550,7 +2550,7 @@
25502550
],
25512551
"source": [
25522552
"print '''\n",
2553-
"Copyright 2015, Google, Inc.\n",
2553+
"Copyright 2016, Google, Inc.\n",
25542554
"Licensed under the Apache License, Version 2.0 (the \"License\");\n",
25552555
"you may not use this file except in compliance with the License.\n",
25562556
"You may obtain a copy of the License at\n",

tutorials/BigQuery/UDFs in BigQuery.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
}
6666
],
6767
"source": [
68-
"%bigquery schema --table cloud-datalab-samples:appenginelogs.sample_logs_20151027"
68+
"%bigquery schema --table \"cloud-datalab-samples:appenginelogs.sample_logs_20151027\""
6969
]
7070
},
7171
{

tutorials/BigQuery/Untitled Notebook.ipynb

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

tutorials/Monitoring/Getting started.ipynb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,7 @@
2626
},
2727
"outputs": [],
2828
"source": [
29-
"from datalab.stackdriver import monitoring as gcm\n",
30-
"\n",
31-
"set_datalab_project_id('monitoring-datalab')"
29+
"from datalab.stackdriver import monitoring as gcm"
3230
]
3331
},
3432
{

tutorials/Storage/Storage APIs.ipynb

Lines changed: 12 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -173,28 +173,6 @@
173173
"sample_bucket.exists()"
174174
]
175175
},
176-
{
177-
"cell_type": "code",
178-
"execution_count": 6,
179-
"metadata": {
180-
"collapsed": false
181-
},
182-
"outputs": [
183-
{
184-
"data": {
185-
"text/plain": [
186-
"[]"
187-
]
188-
},
189-
"execution_count": 6,
190-
"metadata": {},
191-
"output_type": "execute_result"
192-
}
193-
],
194-
"source": [
195-
"list(sample_bucket.items())"
196-
]
197-
},
198176
{
199177
"cell_type": "markdown",
200178
"metadata": {},
@@ -211,7 +189,7 @@
211189
},
212190
{
213191
"cell_type": "code",
214-
"execution_count": 7,
192+
"execution_count": 6,
215193
"metadata": {
216194
"collapsed": true
217195
},
@@ -221,6 +199,17 @@
221199
"sample_item.write_to('Some sample text', 'text/plain')"
222200
]
223201
},
202+
{
203+
"cell_type": "code",
204+
"execution_count": 7,
205+
"metadata": {
206+
"collapsed": false
207+
},
208+
"outputs": [],
209+
"source": [
210+
"list(sample_bucket.items())"
211+
]
212+
},
224213
{
225214
"cell_type": "code",
226215
"execution_count": 8,

tutorials/Storage/Storage Commands.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@
103103
}
104104
],
105105
"source": [
106-
"%%storage list --project cloud-datalab-samples"
106+
"%%storage list"
107107
]
108108
},
109109
{

tutorials/Storage/Untitled Notebook.ipynb

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

0 commit comments

Comments
 (0)