Uh oh!
There was an error while loading. Please reload this page.
[ZEPPELIN-1094] Run all paragraphs keeps appending empty paragraphs - #1111
[ZEPPELIN-1094] Run all paragraphs keeps appending empty paragraphs#1111prabhjyotsingh wants to merge 1 commit into
Conversation
r-kamath
commented
Jul 1, 2016
LGTM |
corneadoug
commented
Jul 1, 2016
@jongyoul Since you were reviewing the original PR can you check this one out? |
prabhjyotsingh
commented
Jul 2, 2016
Merging this if no more discussion. |
jongyoul
commented
Jul 2, 2016
I'm testing it. Just wait. |
@prabhjyotsingh After run all paragraphs, note adds new paragraph at the end of last paragraph. And then, if the last paragraph is empty, note don't create paragraph anymore. Is it normal? I think it's better not to create empty paragraph. Because running paragraph means running only, not creating anything. How about you? |
prabhjyotsingh
commented
Jul 2, 2016
Yes, its working for me, if you refer to the gif attached above; if paragraph content is only interpreter name (like in this example "%md ") it wouldn't add a paragraph below, but if we append anything after it, on running that should append a paragraph below. IMO, I too am in a favour of not adding an empty paragraph on running notebook. |
jongyoul
commented
Jul 2, 2016
@prabhjyotsingh I only said that case of "running all paragraph". I think "running all paragraphs" is not interactive mode. But in a normal case, I like to add empty paragraph at the end of paragraph. What I told is that how about not adding empty paragraph when you click "running all paragraphs". |
prabhjyotsingh
commented
Jul 2, 2016
@jongyoul Sure, now I understand what you mean, but before that what do we call an empty paragraph; should it be |
jongyoul
commented
Jul 2, 2016
@prabhjyotsingh You're right for the before behaviour. I thank you for taking care of it. In case of your PR, I've tested and worked well. I hope you can deal with my suggestion. |
prabhjyotsingh
commented
Jul 2, 2016
Sure, thank you @jongyoul I'll open up a separate PR for fixing that. |
### What is this PR for? Every time user clicks on "Run all paragraphs" button system keeps appending an empty paragraph. Ideally content of paragraph should be checked before adding any empty paragraph. This started happening after [ZEPPELIN-707](https://issues.apache.org/jira/browse/ZEPPELIN-707) was merged. ### What type of PR is it? [Bug Fix | Improvement] ### Todos * [x] - add more condition before calling note.addParagraph() ### What is the Jira issue? * [ZEPPELIN-1094](https://issues.apache.org/jira/browse/ZEPPELIN-1094) ### Screenshots (if appropriate) Before  After  ### Questions: * Does the licenses files need update? n/a * Is there breaking changes for older versions? n/a * Does this needs documentation? n/a Author: Prabhjyot Singh <prabhjyotsingh@gmail.com> Closesapache#1111 from prabhjyotsingh/ZEPPELIN-1094 and squashes the following commits: 7919648 [Prabhjyot Singh] add more condition before calling note.addParagraph()
### What is this PR for? Every time user clicks on "Run all paragraphs" button system keeps appending an empty paragraph. Ideally content of paragraph should be checked before adding any empty paragraph. This started happening after [ZEPPELIN-707](https://issues.apache.org/jira/browse/ZEPPELIN-707) was merged. ### What type of PR is it? [Bug Fix | Improvement] ### Todos * [x] - add more condition before calling note.addParagraph() ### What is the Jira issue? * [ZEPPELIN-1094](https://issues.apache.org/jira/browse/ZEPPELIN-1094) ### Screenshots (if appropriate) Before  After  ### Questions: * Does the licenses files need update? n/a * Is there breaking changes for older versions? n/a * Does this needs documentation? n/a Author: Prabhjyot Singh <prabhjyotsingh@gmail.com> Closesapache#1111 from prabhjyotsingh/ZEPPELIN-1094 and squashes the following commits: 7919648 [Prabhjyot Singh] add more condition before calling note.addParagraph()
What is this PR for?
Every time user clicks on "Run all paragraphs" button system keeps appending an empty paragraph. Ideally content of paragraph should be checked before adding any empty paragraph.
This started happening after ZEPPELIN-707 was merged.
What type of PR is it?
[Bug Fix | Improvement]
Todos
What is the Jira issue?
Screenshots (if appropriate)
Before

After

Questions: