Re: [Jprogramming] Jupyter Versions of J Labs [for jod]

2019-01-29 Thread Murray Eisenberg
I’m using J807 under macOS. I followed instructions at https://github.com/bakerjd99/jod/blob/master/jodnotebooks/JOD%20Introduction%20Lab.ipynb but encountered two problems. Problem 1 (worked

Re: [Jprogramming] Reading multiline data from clipboard

2019-01-29 Thread chris burke
In jqt, clipread/clipwrite will read/write the clipboard. Also, F8 will execute the clipboard. clipwrite'i.5' 3 clipread'' i.5 press F8: i.5 0 1 2 3 4 -- For information about J forums see

Re: [Jprogramming] Jupyter Versions of J Labs

2019-01-29 Thread David Mitchell
I downloaded the git zip of jkernel from here: https://github.com/martin-saurer/jkernel And followed the instructions to modify the configuration file to point to my j807 dir and copied the dirs and files listed under INSTALLATION from the jkernel-master dirs to the Anaconda dirs. At this

Re: [Jprogramming] Jupyter Versions of J Labs

2019-01-29 Thread David Mitchell
I downloaded the git zip of jkernel from here: https://github.com/martin-saurer/jkernel/blob/master/README.md And followed the instructions to modify the configuration file to point to my j807 dir and copied the dirs and files listed under INSTALLATION from the jkernel-master dirs to the

Re: [Jprogramming] Jupyter Versions of J Labs

2019-01-29 Thread 'Mike Day' via Programming
Not sure who Martin was (as mentioned below),  I eventually found https://code.jsoftware.com/wiki/Guides/Jupyter, contributed by "Martin Saurer" This is fine,  but the download/jupyter link on that page refers to zipped j805 packages, with the Windows version apparently only available in

Re: [Jprogramming] Jupyter Versions of J Labs

2019-01-29 Thread David Mitchell
I looked at the page source of the .ipynb pages and also downloaded the linked .ipynb documents from your message and got HTML documents.  I got the same result from 'Save As' from the git display of jod/jodnotebooks/*. I just tried a git zip download of jod-master then displayed

Re: [Jprogramming] Reading multiline data from clipboard

2019-01-29 Thread 'Pascal Jasmin' via Programming
there is a shortcut, wdclippaste '' cutLF wdclippaste ''  NB. turn multiline data into lines. On Tuesday, January 29, 2019, 12:04:12 p.m. EST, Jimmy Gauvin wrote: Hi, I use : data =: wd 'clippaste' works fine for me, Jimmy On Tue, Jan 29, 2019 at 11:41 AM Brian Schott wrote:

Re: [Jprogramming] Reading multiline data from clipboard

2019-01-29 Thread Raul Miller
I had the same behavior on High Sierra. Pasting into Terminal (after cat <<___ so I wouldn't be executing unexpected commands) while J was locked up locked up Terminal, also. Forcibly shutting down J worked, and terminal ended with the paste being interrupted. Pasting after that showed an

Re: [Jprogramming] Jupyter Versions of J Labs

2019-01-29 Thread John Baker
The Jupyter Notebook file type IPYNB is a JSON file. Simply open the file in a text editor and you will see how it’s stored. Sent from my iPhone > On Jan 29, 2019, at 7:41 AM, David Mitchell wrote: > > John, > > I looked at your github notebooks. They look interesting. > > Is the JSON

Re: [Jprogramming] Reading multiline data from clipboard

2019-01-29 Thread Brian Schott
Yes, David, Bob and Jimmy, I was able to get wd'clippaste' to work in jQt. I don't often use JHS, so I have not tried anything there. And best of all a =: shell 'pbpaste' works for me in jconsole. Now I need to save this message for later reference. Thanks, to all of you.

Re: [Jprogramming] Reading multiline data from clipboard

2019-01-29 Thread 'robert therriault' via Programming
Upon breaking the loop which took a while and resulted in shell 'pbpaste' |break: spawn | shell'pbpaste' Then both wd 'clippaste' and shell pbpaste worked in the jqt environment. Must have been fat fingers, apologies for the noise. :-) wd 'clippaste' JVERSION Engine:

Re: [Jprogramming] Reading multiline data from clipboard

2019-01-29 Thread 'robert therriault' via Programming
I did this in JHS and the console, in jqt it seems to have hung my session! Oops Maybe Jimmy's suggestion of wd 'clippaste' is better for that environment. Cheers, bob > On Jan 29, 2019, at 9:09 AM, 'robert therriault' via Programming > wrote: > > David, > > In Darwin shell 'pbpaste'

Re: [Jprogramming] Reading multiline data from clipboard

2019-01-29 Thread 'robert therriault' via Programming
David, In Darwin shell 'pbpaste' returns the contents of the clipboard. In the case below I copied the JVERSION information to clipboard and that shows up as the response. shell 'pbpaste' JVERSION Engine: j807/j64/darwin Release-b: commercial/2019-01-22T16:42:49 Library: 8.07.22

Re: [Jprogramming] Reading multiline data from clipboard

2019-01-29 Thread Jimmy Gauvin
Hi, I use : data =: wd 'clippaste' works fine for me, Jimmy On Tue, Jan 29, 2019 at 11:41 AM Brian Schott wrote: > > David, that looks very promising, but does not quite work for me. > >load'~addons/general/misc/clippaste.ijs' >getcliptext'' > |domain error: cd > | 0=

Re: [Jprogramming] Reading multiline data from clipboard

2019-01-29 Thread David Mitchell
Brian, Someone will need to do the low-level coding for Darwin to duplicate this. Question: does shell 'pbpaste' Do anything interesting?  I don't have a mac and can't try it. Cheers, David On 1/29/2019 11:40, Brian Schott wrote: David, that looks very promising, but does not quite work

Re: [Jprogramming] Reading multiline data from clipboard

2019-01-29 Thread Brian Schott
David, that looks very promising, but does not quite work for me. load'~addons/general/misc/clippaste.ijs' getcliptext'' |domain error: cd | 0=OpenClipboard 0 JVERSION Engine: j807/j64/darwin Beta-f: commercial/2018-06-28T12:14:57 Library: 8.07.16 Platform: Darwin 64 Installer:

Re: [Jprogramming] Reading multiline data from clipboard

2019-01-29 Thread David Mitchell
On windows, this will read multiline data from the clipboard in jconsole or jqt: load'~addons/general/misc/clippaste.ijs' xx=:getcliptext''    xx  "cell_type": "code",    "execution_count": 10,    "metadata": {},    "outputs": [     { "name": "stdout", "output_type": "stream",

[Jprogramming] Reading multiline data from clipboard

2019-01-29 Thread Brian Schott
I find reading multiline data into jconsole (or even into jqt) to be awkward unless the data are in a file. I would like to be able to read data from the clipboard directly into some pre-named noun. The list of steps I use is annoyingly long. a) prepend the data with 'data =. (0 : 0)' , b) press

Re: [Jprogramming] Jupyter Versions of J Labs

2019-01-29 Thread David Mitchell
John, I looked at your github notebooks. They look interesting. Is the JSON source for those notebooks available? I was curious to see how the conversion process went. All the best, David Mitchell On 1/27/2019 15:12, John Baker wrote: When I first encountered Jupyter Notebooks I thought