[
https://issues.apache.org/jira/browse/TOREE-257?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15140539#comment-15140539
]
Jakub Dubovsky commented on TOREE-257:
--------------------------------------
>From user's perspective I do not think separate magic command is needed. In
>notebook a concept of cell groups statements together nicely. I would expect
>that whole content of a cell is handed over to scala in such a way that it is
>interpreted together as if pasted by paste mode for example. It's hard to
>imagine that this approach would cause some troubles in other languages.
I am interested in what you guys think about this?
I use dot workaround for now. Thanks
> Code submit does not support paste mode
> ---------------------------------------
>
> Key: TOREE-257
> URL: https://issues.apache.org/jira/browse/TOREE-257
> Project: TOREE
> Issue Type: Bug
> Reporter: Jakub Dubovsky
> Priority: Minor
>
> <cell>
> val bbb = aaa.filter( ! _._4.isEmpty)
> .map(row => ((row._2, row._4), row))
> </cell>
> Submit of this cell results in error:
> Name: Compile Error
> Message: <console>:1: error: illegal start of definition
> .map(row => ((row._2, row._4), row))
> ^
> This is probably because the content of cell is "retyped" into scala/spark
> shell line by line. First line is recognized and compiled as statement whose
> continuation on second line is ignored.
> In scala repl this is solved by using :paste mode which does not work here.
> This looks like minor bug but is very annoying actually. It prevents me from
> concatenating more filter/map/... statements which is what 90% of
> experimental spark code written in jupyter looks like.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)