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

Commit 75fb7e3

Browse files
eyadsibaiYasser Elsayed
authored andcommitted
Cleanup (#123)
* Remove unnecessary semicolons * remove unused imports * remove unncessary defined variable
1 parent 3a6f471 commit 75fb7e3

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

datalab/mlalpha/_dataset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ def _scatter3d_plot(self, names, x, y, z, color):
294294
iplot(fig)
295295

296296
def _plot_x(self, names, x):
297-
self._histogram(names, x);
297+
self._histogram(names, x)
298298
if x != self._target_name:
299299
self._scatter_plot(names, x, self._target_name, self._target_name)
300300

datalab/mlalpha/commands/_mlalpha.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,13 @@
1818

1919

2020
import collections
21-
import datetime
2221
import fnmatch
2322
import google.cloud.ml
2423
import json
2524
import math
2625
import os
2726
import plotly.graph_objs as go
28-
from plotly.offline import init_notebook_mode, iplot
27+
from plotly.offline import iplot
2928
import urllib
3029
import yaml
3130

@@ -255,7 +254,7 @@ def _train(args, cell):
255254
urllib.urlencode(log_url_query_strings)
256255
html += '<p>Click <a href="%s" target="_blank">here</a> to view cloud log. <br/>' % log_url
257256
html += 'Start TensorBoard by running "%tensorboard start --logdir=&lt;YourLogDir&gt;".</p>'
258-
return IPython.core.display.HTML(html);
257+
return IPython.core.display.HTML(html)
259258
else:
260259
# local training
261260
package_path = None

datalab/storage/_item.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,6 @@ def read_lines(self, max_lines=None):
196196

197197
max_to_read = self.metadata.size
198198
bytes_to_read = min(100 * max_lines, self.metadata.size)
199-
lines = []
200199
while True:
201200
content = self.read_from(byte_count=bytes_to_read)
202201

0 commit comments

Comments
 (0)