-
Notifications
You must be signed in to change notification settings - Fork 2.8k
[ZEPPELIN-1094] Run all paragraphs keeps appending empty paragraphs #1111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
LGTM |
|
@jongyoul Since you were reviewing the original PR can you check this one out? |
|
Merging this if no more discussion. |
|
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? |
|
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. |
|
@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". |
|
@jongyoul Sure, now I understand what you mean, but before that what do we call an empty paragraph; should it be |
|
@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. |
|
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 <[email protected]> Closes apache#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 <[email protected]> Closes apache#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: