liuxunorg commented on issue #3271: [ZEPPELIN-3919] Paragraph config default 
value can be customized
URL: https://github.com/apache/zeppelin/pull/3271#issuecomment-457430662
 
 
   Tanks @zjffdu the question raised, in fact, I have considered this issue for 
a long time.
   
   I think, Each interpreter is dedicated.
   Just like the markdown interpreter, `editOnDblClick:true`, when the markdown 
syntax is executed, the code editing area will be hidden to directly display 
the HTML after Markdown rendering. Double-clicking will display the code 
editing area.
   Similarly, in some interpreters such as SubmarineInterpreters, the title bar 
is displayed by default, which is convenient for the user to enter the 
algorithm module name.
   When the user selects the Submarine interpreter for use, each paragraph will 
display the title bar by default as a clear behavior, which will not cause 
confusion for the user.
   
   If the configuration does not take effect when the paragraph is created, the 
user must execute the code for this paragraph, passing through the interpreter 
process.
   ```
   public InterpreterResult interpret(String script, InterpreterContext 
context) {
       context.getConfig().put("title", true);
   }
   ```
   Changes the configuration of the front-end paragraph. It is technically 
feasible, but such an interpreter already explicitly needs to display the 
title, but it is not displayed by default, which makes the user inconvenient to 
use and prone to confusion.
   
   And now the configuration of the paragraph has been supported for dynamic 
modification. Dynamically modifying the interpreter in different paragraphs in 
the same note will re-enable the paragraph configuration according to the 
configuration of the corresponding interpreter. To some extent, make up for 
your concerns.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to