liuxunorg commented on issue #3273: [ZEPPELIN-3920] Paragraph support custom 
menu display with multiple URL link
URL: https://github.com/apache/zeppelin/pull/3273#issuecomment-450653279
 
 
   ## Instructions
   
   In the interpreter
   ```
      Public InterpreterResult interpret(String script, InterpreterContext 
context)
   ```
   function, call
   ```
        Map<String, String> infos1 = new java.util.HashMap<>();
        infos1.put("jobUrl", "http://192.168.0.1/tensorboard";);
        infos1.put("jobLabel", "Tensorboard");
        infos1.put("label", "Submarine UI");
        infos1.put("tooltip", "View Tensorboard web UI");
        infos1.put("noteId", context.getNoteId());
        infos1.put("paraId", context.getParagraphId());
        context.getIntpEventClient().onParaInfosReceived(infos1);
   
        Map<String, String> infos2 = new java.util.HashMap<>();
        infos2.put("jobUrl", "http://192.168.0.1/ps";);
        infos2.put("jobLabel", "Parameter server");
        infos2.put("label", "Submarine UI");
        infos2.put("tooltip", "View Parameter server web UI");
        infos2.put("noteId", context.getNoteId());
        infos2.put("paraId", context.getParagraphId());
        context.getIntpEventClient().onParaInfosReceived(infos2);
   
        Map<String, String> infos3 = new java.util.HashMap<>();
        infos3.put("jobUrl", "http://192.168.0.1/ws";);
        infos3.put("jobLabel", "Parameter server");
        infos3.put("label", "Submarine UI");
        infos3.put("tooltip", "View Worker server web UI");
        infos3.put("noteId", context.getNoteId());
        infos3.put("paraId", context.getParagraphId());
        context.getIntpEventClient().onParaInfosReceived(infos3);
   ```
   A URL menu will be created on the paragraph control bar.

----------------------------------------------------------------
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