Thank you very much Zhong ! For my first question, I think we need to wait for the job status to be finished. Let me check it.
On Sat, Feb 13, 2016 at 12:28 AM, Zhong Wang <wangzhong....@gmail.com> wrote: > For your second question, the answer is yes. See this example: > http://s.apache.org/57E > > Zhong > > On Fri, Feb 12, 2016 at 1:31 AM, Shabeel Syed <shabeels...@gmail.com> > wrote: > >> Hello All, >> >> I was trying some usage using the zeppelin rest apis. >> Steps, I'm trying to achieve >> 1) Requirement is to provide a data viewer for a given mysql table >> 2) Firstly, I will create the note book dynamically if it does not >> exists. >> 3) Then create a paragraph with scala code to read table contents and >> print those using the %table keyword >> 4) Run that paragraph >> 5) display that table under an iframe. >> 6) Reopening the dataviewer for that given table will not recreate the >> paragraph, instead it shows the persisted paragraph view. >> >> These I'm able to achieve dynamically using the provided rest api >> support from Zeppelin. >> >> But at the step 5 for initial loading of the paragraph , it throws an >> error in the console log, and fails to load the iframe. The error reported >> from zeppelin : >> >> At scripts/vendor.js >> TypeError: Cannot read property 'keys' of undefined >> at z (scripts.js:2) >> at scripts.js:1 >> at l.$broadcast (vendor.js:38) >> at o (scripts.js:1) >> at scripts.js:1 >> at l.$broadcast (vendor.js:38) >> at n.<anonymous> (scripts.js:2) >> at b (vendor.js:74) >> at n._onMessageHandler (vendor.js:74) >> at WebSocket.<anonymous> (vendor.js:36) >> >> The error goes away at the step 6. And loads the table perfectly. >> >> >> Second Question, >> >> If we render something with %table , is there any rest api or other >> support to display the graphs by default ? right now it shows the table by >> default. It would be better using any input fields added , user can switch >> between various graphs or table view. Please let me know if that is >> possible ? >> >> >> Regards >> Shabeel >> > >