RJ Nowling created ZEPPELIN-34:
----------------------------------
Summary: PySpark Indentation Issues
Key: ZEPPELIN-34
URL: https://issues.apache.org/jira/browse/ZEPPELIN-34
Project: Zeppelin
Issue Type: Bug
Affects Versions: 0.5.0
Reporter: RJ Nowling
When trying to run PySpark code with indented blocks, I get errors:
{noformat}
%pyspark
count = 0
for word in data.collect():
for c in word:
count += 1
(<type 'exceptions.IndentationError'>, IndentationError('expected an indented
block', ('<string>', 2, 18, ' for c in word:')), <traceback object at 0xd12f80>)
{noformat}
and
{noformat}
%pyspark
if True:
print "Yup"
else:
print "Nope"
(<type 'exceptions.SyntaxError'>, SyntaxError('invalid syntax', ('<string>', 1,
4, 'else:')), <traceback object at 0xd12e60>)
{noformat}
I'm using Spark 1.3 and Python 2.7.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)