Re: Paragraph content is reset

2021-07-03 Thread Joshua Ochsankehl
This is the same issue I reported here.
https://issues.apache.org/jira/projects/ZEPPELIN/issues/ZEPPELIN-4439?filter=allopenissues

Definitely still a problem.


On Sat, Jul 3, 2021 at 6:37 AM Jeff Zhang  wrote:

> I am not a front-end expert, but it seems you are right that this is a
> bug.
>
>
> Vladimir Prus  于2021年6月30日周三 上午4:00写道:
>
>> Hi,
>>
>> lots of colleagues (myself included) are observing the following annoying
>> behaviour:
>> - you are busy typing fancy Spark code in a notebook
>> - all of sudden, recently written code disappears and cursor jumps to the
>> start of the paragraph
>>
>> The cursor jump suggests that paragraph text is unintentionally updated,
>> and looking at console logs suggests that maybe, UI sends "commit
>> paragraph" to the server, receives new paragraph, and updates the text in
>> UI to an earlier version. So, I looked at the code in
>> paragraph.controller.js and see this
>>
>> if ($scope.dirtyText === newPara.text) {  // when local update is the same 
>> from remote, clear local update
>>   $scope.paragraph.text = newPara.text;
>>   $scope.dirtyText = undefined;
>>   $scope.originalText = angular.copy(newPara.text);
>> } else { // if there're local update, keep it.
>>   $scope.paragraph.text = newPara.text;
>> }
>>
>>
>> It seems there's the intention to preserve local changes, but then the
>> last line still assigns newPara.text to paragraph. Is this just a thinko
>> and the last line is a bug, and must be basically removed (so keep current
>> paragraph.text and dirtyText). Or am I misunderstanding all this?
>>
>>
>> --
>> Vladimir Prus
>> http://vladimirprus.com
>>
>
>
> --
> Best Regards
>
> Jeff Zhang
>


Re: Python textbox

2021-05-11 Thread Joshua Ochsankehl
So i feel dumb.  I found the option under the gear.  Sorry for the trouble.

On Tue, May 11, 2021 at 11:18 AM Joshua Ochsankehl <
joshua.ochsank...@gmail.com> wrote:

> But that isn't how it is currently acting.
>
> On Tue, May 11, 2021 at 11:17 AM Joshua Ochsankehl <
> joshua.ochsank...@gmail.com> wrote:
>
>> Yes, that's it.
>>
>> On Tue, May 11, 2021 at 10:34 AM Jeff Zhang  wrote:
>>
>>> Is this what you want ? Actually each time you type enter in the
>>> textbox, the paragraph will rerun.
>>>
>>> [image: image.png]
>>>
>>> Joshua Ochsankehl  于2021年5月10日周一 下午11:31写道:
>>>
>>>> I set it to a variable.
>>>>
>>>> var1 = z.textbox("reference")
>>>> then use and if else to test the change.  Can't paste the text cause
>>>> it's proprietary to work.
>>>>
>>>> On Mon, May 10, 2021 at 10:27 AM Jeff Zhang  wrote:
>>>>
>>>>> Could you paste your code ?
>>>>>
>>>>> Joshua Ox  于2021年5月10日周一 下午11:19写道:
>>>>>
>>>>>> I m trying to use textbox in python but it reloads the page every
>>>>>> time I type.  How do i set this to on enter?
>>>>>>
>>>>>> V/R,
>>>>>> Joshua "Ox" Ochsankehl
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Best Regards
>>>>>
>>>>> Jeff Zhang
>>>>>
>>>>
>>>
>>> --
>>> Best Regards
>>>
>>> Jeff Zhang
>>>
>>


Re: Python textbox

2021-05-11 Thread Joshua Ochsankehl
But that isn't how it is currently acting.

On Tue, May 11, 2021 at 11:17 AM Joshua Ochsankehl <
joshua.ochsank...@gmail.com> wrote:

> Yes, that's it.
>
> On Tue, May 11, 2021 at 10:34 AM Jeff Zhang  wrote:
>
>> Is this what you want ? Actually each time you type enter in the textbox,
>> the paragraph will rerun.
>>
>> [image: image.png]
>>
>> Joshua Ochsankehl  于2021年5月10日周一 下午11:31写道:
>>
>>> I set it to a variable.
>>>
>>> var1 = z.textbox("reference")
>>> then use and if else to test the change.  Can't paste the text cause
>>> it's proprietary to work.
>>>
>>> On Mon, May 10, 2021 at 10:27 AM Jeff Zhang  wrote:
>>>
>>>> Could you paste your code ?
>>>>
>>>> Joshua Ox  于2021年5月10日周一 下午11:19写道:
>>>>
>>>>> I m trying to use textbox in python but it reloads the page every time
>>>>> I type.  How do i set this to on enter?
>>>>>
>>>>> V/R,
>>>>> Joshua "Ox" Ochsankehl
>>>>>
>>>>
>>>>
>>>> --
>>>> Best Regards
>>>>
>>>> Jeff Zhang
>>>>
>>>
>>
>> --
>> Best Regards
>>
>> Jeff Zhang
>>
>


Re: Python textbox

2021-05-11 Thread Joshua Ochsankehl
Yes, that's it.

On Tue, May 11, 2021 at 10:34 AM Jeff Zhang  wrote:

> Is this what you want ? Actually each time you type enter in the textbox,
> the paragraph will rerun.
>
> [image: image.png]
>
> Joshua Ochsankehl  于2021年5月10日周一 下午11:31写道:
>
>> I set it to a variable.
>>
>> var1 = z.textbox("reference")
>> then use and if else to test the change.  Can't paste the text cause it's
>> proprietary to work.
>>
>> On Mon, May 10, 2021 at 10:27 AM Jeff Zhang  wrote:
>>
>>> Could you paste your code ?
>>>
>>> Joshua Ox  于2021年5月10日周一 下午11:19写道:
>>>
>>>> I m trying to use textbox in python but it reloads the page every time
>>>> I type.  How do i set this to on enter?
>>>>
>>>> V/R,
>>>> Joshua "Ox" Ochsankehl
>>>>
>>>
>>>
>>> --
>>> Best Regards
>>>
>>> Jeff Zhang
>>>
>>
>
> --
> Best Regards
>
> Jeff Zhang
>


Re: Python textbox

2021-05-10 Thread Joshua Ochsankehl
I set it to a variable.

var1 = z.textbox("reference")
then use and if else to test the change.  Can't paste the text cause it's
proprietary to work.

On Mon, May 10, 2021 at 10:27 AM Jeff Zhang  wrote:

> Could you paste your code ?
>
> Joshua Ox  于2021年5月10日周一 下午11:19写道:
>
>> I m trying to use textbox in python but it reloads the page every time I
>> type.  How do i set this to on enter?
>>
>> V/R,
>> Joshua "Ox" Ochsankehl
>>
>
>
> --
> Best Regards
>
> Jeff Zhang
>


Re: [ANNOUNCE] Apache Zeppelin 0.9.0 released

2021-04-06 Thread Joshua Ochsankehl
Is there a way to pull the data table from a paragraph results into python
that wasn't python?

V/R,
Joshua Ox

On Fri, Jan 15, 2021 at 9:09 AM Jeff Zhang  wrote:

> The Apache Zeppelin community is pleased to announce the availability of the 
> 0.9.0 release after 2 preview releases.
>
> Zeppelin is a collaborative data analytics and visualization tool for 
> distributed, general-purpose data processing system such as Apache Spark, 
> Apache Flink, Apache Cassandra and etc.
>
> This is another major release after the last major release 0.8.0. The 
> community put significant effort into improving Apache Zeppelin since the 
> last release.
>
> We encourage you to download the latest release 
> fromhttp://zeppelin.apache.org/download.html
>
> We welcome your help and feedback. For more information on the project and 
> how to get involved, visit our website at http://zeppelin.apache.org/
>
> Thank you all users and contributors who have helped to improve Apache 
> Zeppelin.
>
> Here's some highlights of this major release
>
>
>1.
>
>Java 8 Support (Remote JDK 7 Support)  
> https://issues.apache.org/jira/browse/ZEPPELIN-621
>2.
>
>Plugin mechanism (https://jira.apache.org/jira/browse/ZEPPELIN-3196)
>3.
>
>Paragraph level properties 
> (https://jira.apache.org/jira/browse/ZEPPELIN-3348)
>4.
>
>KSQL Interpreter (https://jira.apache.org/jira/browse/ZEPPELIN-3548)
>5.
>
>Hazelcast Jet Interpreter 
> (https://jira.apache.org/jira/browse/ZEPPELIN-3654)
>6.
>
>Allow to specify saving resourceName as paragraph property 
> (https://jira.apache.org/jira/browse/ZEPPELIN-3617)
>7.
>
>Support Spark 2.4.x & Scala 2.12 
> (https://jira.apache.org/jira/browse/ZEPPELIN-3810)
>8.
>
>Support Spark 3.0 https://issues.apache.org/jira/browse/ZEPPELIN-4510
>9.
>
>Add terminal interpreter 
> (https://jira.apache.org/jira/browse/ZEPPELIN-4131)
>10.
>
>Kotlin support for Spark interpreter 
> (https://jira.apache.org/jira/browse/ZEPPELIN-4323)
>11.
>
>Support more types of output for IPythonInterpreter 
> (https://jira.apache.org/jira/browse/ZEPPELIN-4265)
>12.
>
>K8S support https://issues.apache.org/jira/browse/ZEPPELIN-3840
>13.
>
>Bi-directional communication between ZeppelinServer & Interpreter process 
> https://issues.apache.org/jira/browse/ZEPPELIN-2035
>14.
>
>Shaded zeppelin interpreter, so that we won’t hit the class not found 
> issue in Spark interpreter https://issues.apache.org/jira/browse/ZEPPELIN-3689
>15.
>
>Zeppelin server cluster mode (HA) 
> https://issues.apache.org/jira/browse/ZEPPELIN-3471
>16.
>
>Note file structure name is restructured. 
> https://issues.apache.org/jira/browse/ZEPPELIN-2619
>17.
>
>Support Shiny App   https://issues.apache.org/jira/browse/ZEPPELIN-4525
>18.
>
>Support Jupyter Interpreter  
> https://issues.apache.org/jira/browse/ZEPPELIN-4480
>19.
>
>Support importing ipython notebook to Zeppelin  
> https://issues.apache.org/jira/browse/ZEPPELIN-3033
>20.
>
>New Angular UI Preview https://issues.apache.org/jira/browse/ZEPPELIN-4321
>21.
>
>Cassandra interpreter improvement 
> (https://alexott.blogspot.com/2020/07/new-functionality-of-cassandra.html)
>22.
>
>Zeppelin Client API (https://issues.apache.org/jira/browse/ZEPPELIN-4981)
>23.
>
>Flink interpreter refactoring 
> (https://app.gitbook.com/@jeffzhang/s/flink-on-zeppelin/)
>
>
> Regards,
> The Apache Zeppelin community
>
>
> --
> Best Regards
>
> Jeff Zhang
>


Re: [Vote] Create feature branch for new angular web frontend

2019-10-10 Thread Joshua Ochsankehl
I agree! +1

On Thu, Oct 10, 2019 at 8:24 PM Jeff Zhang  wrote:

> Here's my +1
>
> Jeff Zhang  于2019年10月10日周四 上午11:42写道:
>
>>
>> Hi Folks,
>>
>> Recently,  Hsuan Lee and Yadong Xie made a proposal about upgrading
>> existing frontend from angular-js to angular 8 [1]. And they have made a
>> POC for this proposal [2]. I would like to start this vote thread to
>> discuss about creating a feature branch for this proposal since this is a
>> pretty big feature.
>>
>> Besides that, you may notice that there's another initiative about
>> creating new web frontend using Vue.  I'd like to clarify that these 2
>> initiatives are not conflicted with each other, because both of them rely
>> on the same zeppelin backend and we could have multiple zeppelin frontend
>> implementation each of them can customize itself (Current plan is to make
>> these frontend implementation as subproject of zeppelin, but not
>> determined yet). And I think these 2 initiatives will take lots of time to
>> implement all the features of the current frontend, we could leave some
>> problems in future.
>>
>>
>> [1] https://issues.apache.org/jira/browse/ZEPPELIN-4321#
>> [2]
>> https://lists.apache.org/thread.html/dfa32b35b4497df64ee9d44fc1673e9fe114675a74128fd34e06c5a2@%3Cdev.zeppelin.apache.org%3E
>>
>>
>> --
>> Best Regards
>>
>> Jeff Zhang
>>
>
>
> --
> Best Regards
>
> Jeff Zhang
>


Re: Calling Scala function from angular submit button

2019-10-09 Thread Joshua Ochsankehl
What I ended up doing was creating a variable that was shared between the
angular and scala instances and created a watch and case statement that
would call a function dependent on the value of the variable which would be
changed on button click.  This worked well until my company went to a YARN
cluster which apparently no longer supports the z libraries for passing
variables.  Good times

On Sat, Oct 5, 2019 at 1:59 AM Jeff Zhang  wrote:

> Maybe this PR is what you want, see the examples in screenshot
>
> https://github.com/apache/zeppelin/pull/3464
>
>
> Joshua Ochsankehl  于2019年10月5日周六 上午7:39写道:
>
>> Thanks for the tip! I'll likely stubbornly figure it out myself lol.  I
>> got it to work so far by making paragraphs that call the functions but
>> that's messy.  If I figure it out I'll be sure to add the solution here.
>>
>> On Fri, Oct 4, 2019, 6:30 PM Stephen Boesch  wrote:
>>
>>> I don't have the  scala side code anymore apologies (former company
>>> private codebase).  I coded it due to not wanting to use a heavier weight
>>> framework - e.g. Play.  If you don't mind integrating a heavy framework
>>> it's baked into Play/Play2 : but that adds  codebase  complexity. Your
>>> call.   otherwise you could code it up in under a day.  Surprisingly i've
>>> not seen a standalone websockets server in scala out there : maybe just
>>> overlooked.
>>>
>>> Am Fr., 4. Okt. 2019 um 16:14 Uhr schrieb Joshua Ochsankehl <
>>> joshua.ochsank...@gmail.com>:
>>>
>>>> Ok, I understand what you're saying but I'm not sure how to go about
>>>> it.  Any tips or good tutorials on it to point me in the right direction.
>>>> Thanks for the response.
>>>>
>>>> On Fri, Oct 4, 2019 at 5:58 PM Stephen Boesch 
>>>> wrote:
>>>>
>>>>> You'll need to start a listener/server on the scala end and
>>>>> communicate vai  a websocket connection from angular.
>>>>>
>>>>> Am Fr., 4. Okt. 2019 um 13:00 Uhr schrieb Joshua Ochsankehl <
>>>>> joshua.ochsank...@gmail.com>:
>>>>>
>>>>>> Is it possible to pass a value to a spark/scala function from
>>>>>> an angular submit button?
>>>>>>
>>>>>
>
> --
> Best Regards
>
> Jeff Zhang
>


Re: Calling Scala function from angular submit button

2019-10-04 Thread Joshua Ochsankehl
Thanks for the tip! I'll likely stubbornly figure it out myself lol.  I got
it to work so far by making paragraphs that call the functions but that's
messy.  If I figure it out I'll be sure to add the solution here.

On Fri, Oct 4, 2019, 6:30 PM Stephen Boesch  wrote:

> I don't have the  scala side code anymore apologies (former company
> private codebase).  I coded it due to not wanting to use a heavier weight
> framework - e.g. Play.  If you don't mind integrating a heavy framework
> it's baked into Play/Play2 : but that adds  codebase  complexity. Your
> call.   otherwise you could code it up in under a day.  Surprisingly i've
> not seen a standalone websockets server in scala out there : maybe just
> overlooked.
>
> Am Fr., 4. Okt. 2019 um 16:14 Uhr schrieb Joshua Ochsankehl <
> joshua.ochsank...@gmail.com>:
>
>> Ok, I understand what you're saying but I'm not sure how to go about it.
>> Any tips or good tutorials on it to point me in the right direction.
>> Thanks for the response.
>>
>> On Fri, Oct 4, 2019 at 5:58 PM Stephen Boesch  wrote:
>>
>>> You'll need to start a listener/server on the scala end and communicate
>>> vai  a websocket connection from angular.
>>>
>>> Am Fr., 4. Okt. 2019 um 13:00 Uhr schrieb Joshua Ochsankehl <
>>> joshua.ochsank...@gmail.com>:
>>>
>>>> Is it possible to pass a value to a spark/scala function from
>>>> an angular submit button?
>>>>
>>>


Re: Calling Scala function from angular submit button

2019-10-04 Thread Joshua Ochsankehl
Ok, I understand what you're saying but I'm not sure how to go about it.
Any tips or good tutorials on it to point me in the right direction.
Thanks for the response.

On Fri, Oct 4, 2019 at 5:58 PM Stephen Boesch  wrote:

> You'll need to start a listener/server on the scala end and communicate
> vai  a websocket connection from angular.
>
> Am Fr., 4. Okt. 2019 um 13:00 Uhr schrieb Joshua Ochsankehl <
> joshua.ochsank...@gmail.com>:
>
>> Is it possible to pass a value to a spark/scala function from
>> an angular submit button?
>>
>


Calling Scala function from angular submit button

2019-10-04 Thread Joshua Ochsankehl
Is it possible to pass a value to a spark/scala function from
an angular submit button?


Re:

2019-10-04 Thread Joshua Ochsankehl
Sure.

Para 1.
//This is going to setup the DataFrames and Fieldlist to choose from for
later paragraphs.
var value  = Array.empty[String]
var fields = Array(("",""))

def myfunc(command:String){
command match{
case "basic" =>
println("You setup a Basic Flow Table")
println("and you should feel good!")
fields = Array(("sip","Source IP"),
   ("dip","Destination IP"))
case "http" =>
println("You setup a HTTP Flow Table")
fields = Array(("sip","Source IP"),
   ("dip","Destination IP"),
   ("header","Header"),
   ("uri","URI"))
case "dns" =>
println("You setup a DNS Flow Table")
fields = Array(("sip","Source IP"),
   ("dip","Destination IP"),
   ("dnsDomain","Domain"),
   ("dnsArecord","A Record"))
case "smtp" =>
println("You setup a SMTP Flow Table")
fields = Array(("sip","Source IP"),
   ("dip","Destination IP"),
   ("smtpHeader","SMTP Header"),
   ("smtpFromEmail","SMTP From Email Address"))
case "ssl" =>
println("You setup a SSL Flow Table")
fields = Array(("sip","Source IP"),
   ("dip","Destination IP"),
   ("sslCompanyName","SSL Company Name"),
   ("sslCertHash","SSL Certificate Hash"))
case "ftp" =>
println("You setup a FTP Flow Table")
fields = Array(("sip","Source IP"),
   ("dip","Destination IP"),
   ("ftpUser","FTP Username"),
   ("ftpPass","FTP Password"))
case _  =>
println("Nothing is setup.")
}
}

myfunc{
"" + z.select("Select the Data you want:", Seq(
("basic","Basic Flows"),
("http","HTTP Flows"),
("dns","DNS Flows"),
("smtp","SMTP Flows"),
("ssl","SSL Flows"),
("ftp","FTP Flows")))
}

z.angularBind("fieldlist", fields.toArray)

Para 2.
//This is the frontend code for the users to manipulate.  Currently it's
just a basic list of variables.
%angular
IOC List



Field List


Para 3.
//This currently is setting up the arraylist for the select list in Para
2.  It is also suppose to pull the selected variable from the field_List in
Para 2.
var filter_IOC = Array.empty[String]
filter_IOC = Array("---","Apple","Pear","Orange")
var field_List_Selected = z.angular("field_List").toString
println(field_List_Selected)

-
So i changed the paragraph names here for readability

On Fri, Oct 4, 2019 at 3:16 AM Jeff Zhang  wrote:

> Do you mind to share some code to demonstrate what you want ?
>
> Joshua Ochsankehl  于2019年10月4日周五 上午3:20写道:
>
>> Hello I go by the name Ox.  I am working on a project for work to make
>> Zeppelin more usable to new analysts that don't know how to code.  I am
>> struggling with a few things that I am trying to do (I haven't code between
>> two languages before).  I am trying to make an interface that has
>> everything coded in the background using angular and scala.  In the end it
>> should produce event flows from a data table.  I don't know if this is the
>> space for this or not but I'd like to start a dialog about it.
>>
>> I was able to get a Scala array import into an angular select statement
>> but I would like to now return the selected result to a scala paragraph
>> instance.
>>
>> Also it appears to me that bind isn't working how I think it should.  For
>> some reason some of my arrays are updating and some aren't even though I
>> coded them the same way.
>>
>
>
> --
> Best Regards
>
> Jeff Zhang
>


Re: Edit/Rename Paragraphs

2019-10-04 Thread Joshua Ochsankehl
No I am not talking about the title.  So currently when you make a new
paragraph it gives it a unique name such as 20191004-074058_332622757.
This is great for making sure you aren't duplicating names and that it's
unique for every paragraph but gets to be a bit messy for human eyes when
they all have the same format and you're looking through a bunch of
paragraphs.

So I'm asking for a means to rename the paragraph in the json code.
Without having to export and reimport.

On Fri, Oct 4, 2019 at 2:23 AM  wrote:

> Hello Joshua,
>
>
>
> You can already put title on paragraph, just press the wheel configuration
> of your paragraph, then click on “Show title”. It will appear as
> “Untitled”, but you can directly edit it. Is it what you are talking about?
>
>
>
> Stéphane
>
>
>
> *From:* Joshua Ochsankehl [mailto:joshua.ochsank...@gmail.com]
> *Sent:* Thursday, October 3, 2019 22:06
> *To:* users@zeppelin.apache.org
> *Subject:* Edit/Rename Paragraphs
>
>
>
> It would be nice to have the ability to edit/rename paragraphs for
> readability.  All the dates start looking the same especially in larger
> notebooks.
>


Re:

2019-10-03 Thread Joshua Ochsankehl
Sorry about the Subject line.  I didn't mean to leave it blank and not sure
how to fix that.  I did figure out the bind issue but I still can't seem to
get the selected value from an angular select to scala.


On 2019/10/03 19:20:02, Joshua Ochsankehl  wrote:

>  Hello I go by the name Ox.  I am working on a project for work to make>

> Zeppelin more usable to new analysts that don't know how to code.  I am>

> struggling with a few things that I am trying to do (I haven't code
between>

> two languages before).  I am trying to make an interface that has>

> everything coded in the background using angular and scala.  In the end
it>

> should produce event flows from a data table.  I don't know if this is
the>

> space for this or not but I'd like to start a dialog about it.>

>

> I was able to get a Scala array import into an angular select statement
but>

> I would like to now return the selected result to a scala paragraph>

> instance.>

>

> Also it appears to me that bind isn't working how I think it should.
For>

> some reason some of my arrays are updating and some aren't even though I>

> coded them the same way.>

>


Edit/Rename Paragraphs

2019-10-03 Thread Joshua Ochsankehl
It would be nice to have the ability to edit/rename paragraphs for
readability.  All the dates start looking the same especially in larger
notebooks.


[no subject]

2019-10-03 Thread Joshua Ochsankehl
 Hello I go by the name Ox.  I am working on a project for work to make
Zeppelin more usable to new analysts that don't know how to code.  I am
struggling with a few things that I am trying to do (I haven't code between
two languages before).  I am trying to make an interface that has
everything coded in the background using angular and scala.  In the end it
should produce event flows from a data table.  I don't know if this is the
space for this or not but I'd like to start a dialog about it.

I was able to get a Scala array import into an angular select statement but
I would like to now return the selected result to a scala paragraph
instance.

Also it appears to me that bind isn't working how I think it should.  For
some reason some of my arrays are updating and some aren't even though I
coded them the same way.