Devon - if I had any GB£ I'd convert them to diamonds to sew into my
turn-ups. But my day-to-day income is nicely hedged, with a small but
significant part coming in as US$. So if Sterling crashes along with Old
Blighty, I'll still be able to afford an M16. If not a new Mac.

On the Jupyter front, a lot of water has gone under my bridge, which is why
it's all gone all quiet with me. I took a deep breath and downloaded
Anaconda 3…
   https://www.anaconda.com/what-is-anaconda/
and my whole view of the world changed.

Suffice to say I'm a convert – at least to Jupyter, if not to Anaconda
(just yet). As well as Jupyter Notebook (which is the only on-topic app as
far as this thread is concerned) there are a lot of cool toys to play with.

But I must eat my words about Martin Saurer's J "kernel" for Jupyter
needing to be one notch down in macOS level (from OS X 10.12 to 10.11) and
2 notches up in J level (from j805 to j807)…
Anaconda 3 has done away with the first notch. It takes a relaxed view that
its seething masses can't be assumed to be all on the latest macOS, and so
it only demands OS X 10.10 or above. So… at this point I have a fancy
dashboard with a button marked Jupyter Notebook (and another one marked
JupyterLab, which is another tale entirely).

The trailing edge has never looked so good.

I can now download a Jupyter "notebook" from anywhere (extension .ipynb)
and open it to read it. Though I can't launch it by doubleclicking it –
AFAICT I must go through the Jupyter dashboard to find it on my disk and
open it. If it contains J code I can read the code. But without a J
"kernel" I can't re-execute it. (Of course).

Alas…

Anaconda 3/Jupyter comes with Python 3 as the only kernel pre-installed.
WIBNI (wouldn't-it-be-nice-if) it came with both Python 3 AND j807.
But it doesn't. Not yet. And until it does, a Jupyter notebook (.ipynb) is
not on a level with a J lab (.ijt), because J labs work straight out of the
box. But to make a Jupyter notebook work with J, specifically j807, there's
"some soldering required".

But here's where Martin Saurer's jkernel package comes into its own…
   https://github.com/martin-saurer/jkernel
I was able to follow Martin's instructions – blindly and to the letter –
and hey presto: any notebook written for J can now make use of the
"jkernel" engine. Just choose Menu: Kernel > Choose kernel… > J and you see
a big red J in the top right of the Jupyter window instead of the Mayan
snake.
Having achieved that, I fancy my chances on being able to upgrade the J
kernel to j807. Haven't done so yet because other things have supervened.
But I'll try writing a notebook to support the task (…yes really), just to
get to grips with my new tool.

One little wrinkle would make the Brave New World even braver – how can I
get J to tell it's being run as a Jupyter kernel? For a start, I'd like to
conditionally suppress all smoutputs in my startup script. All I've
discovered as yet is (0 -: #ARGV) .
In time, WIBNI we had IFJUPYTER, like IFQT etc.


On Fri, 1 Feb 2019 at 03:40, Devon McCormick <devon...@gmail.com> wrote:

> Ian - I hope you've converted all your £s to something solid like gold or
> bitcoin before the falling off the cliff thing happens.
> I'm still clutching onto my Windows 7 - along with my guns and religion -
> until I'm forced to move to one of the dark sides like Linux or Mac - for
> as long as I continue to be in the fat part of the curve for upgrades if
> not new releases.  It does no good to just sit there, admiring the good old
> things like the occasional decent Windows release - at some point, we have
> to drop NT because it does not handle USB, and move on.
> Like something I just read: "When I hear people talking fondly about the
> past, I hear Death sharpening his knives."
>
> Anyway, the Jupyter packages sound very promising, especially if we could
> run J interactively (i.e. normally) in them.
>
>
>
> On Mon, Jan 28, 2019 at 8:28 PM Ian Clark <earthspo...@gmail.com> wrote:
>
> > Raul wrote:
> > > That... sounds like a potential alternative to jhs and jqt, I
> suppose...
> >
> > Yes, I'd love to get my hands on Jupyter-plus-J.
> > AFAIK Jupyter raids Mathematica for its "workbook" concept, which
> > theoretically obsoletes the platforms we have for delivering courseware,
> > viz Jwiki and jqt.
> > So I dived straight into https://code.jsoftware.com/wiki/Guides/Jupyter,
> > downloaded the zipfile, unpacked it and
> > launched ~/JDemo/jupyter-notebook.command
> >
> > As it crashed in flames it told me the package was built for Mac OS X
> > 10.12, aka Sierra. The highest my early-2009 iMac can go is 10.11 (El
> > Capitan). At that point I discovered what I'd completely forgotten - that
> > I'd done all this a year ago, and got exactly the same result, which I'd
> > written up in detail. Nothing's moved since then.
> >
> > So… unless I can afford to buy a new Mac, hopefully before the GB£
> crashes
> > when Britain falls over the Brexit cliff at the end of March, I'm
> condemned
> > to bringing up the trailing edge of white hot technology for the rest of
> my
> > natural.
> >
> > Funny thing… just about everyone I know with a Mac who doesn't just sit
> > there admiring it is still running El Capitan. I guess it's cheeky to ask
> > for a Jupyter package that drops the OS X level a notch (to 10.11). Not
> to
> > mention raising J by 2 notches to 8.07.
> >
> > Apple – and everyone else – forgets that it's ever been the killer apps
> > that advance the killer system, not the other way round.
> >
> > On Mon, 28 Jan 2019 at 20:29, Raul Miller <rauldmil...@gmail.com> wrote:
> >
> > > That... sounds like a potential alternative to jhs and jqt, I
> suppose...
> > >
> > > Thanks,
> > >
> > > --
> > > Raul
> > >
> > > On Mon, Jan 28, 2019 at 12:51 PM John Baker <bakerj...@gmail.com>
> wrote:
> > > >
> > > > The best way to get an interactive J Jupyter notebook is to install
> > > Anaconda and follow Martin’s instructions for setting up a J kernel.
> > > >
> > > > Martin’s instructions define kernels for Windows, Linux and Macs and
> > > Anaconda runs on all these systems.
> > > >
> > > > Once this is done any J Jupyter Notebook is 100% interactive.
> > > >
> > > >
> > > >
> > > > Sent from my iPhone
> > > >
> > > > > On Jan 28, 2019, at 10:34 AM, Raul Miller <rauldmil...@gmail.com>
> > > wrote:
> > > > >
> > > > > I meant the interactive labs.
> > > > >
> > > > > Is there a good jupyter environment that J could use for labs which
> > > > > works across platforms?
> > > > >
> > > > > If it's not interactive J and/or if it doesn't work cross platform,
> > it
> > > > > pretty much misses the entire point.
> > > > >
> > > > > Thanks,
> > > > >
> > > > > --
> > > > > Raul
> > > > >
> > > > >> On Mon, Jan 28, 2019 at 11:35 AM John Baker <bakerj...@gmail.com>
> > > wrote:
> > > > >>
> > > > >> Yes,
> > > > >>
> > > > >> The notebooks can be rendered as. HTML or PDF.  Look up nbviewer
> for
> > > all the details.
> > > > >>
> > > > >> Sent from my iPhone
> > > > >>
> > > > >>> On Jan 28, 2019, at 8:59 AM, Raul Miller <rauldmil...@gmail.com>
> > > wrote:
> > > > >>>
> > > > >>> Can jupyter content be viewed portably on non-jupyter hardware?
> > > > >>>
> > > > >>> If so, how?
> > > > >>>
> > > > >>> Thanks,
> > > > >>>
> > > > >>> --
> > > > >>> Raul
> > > > >>>
> > > > >>>> On Sun, Jan 27, 2019 at 3:12 PM John Baker <bakerj...@gmail.com
> >
> > > wrote:
> > > > >>>>
> > > > >>>> When I first encountered Jupyter Notebooks I thought they would
> > > make an
> > > > >>>> excellent delievery mechanism for J labs.
> > > > >>>>
> > > > >>>> This weekend I converted some J/JOD labs to Jupyter.
> > > > >>>>
> > > > >>>> Jupyter labs support a richer documentation and execution
> > > environment than
> > > > >>>> we are used to seeing with J labs. You get all the typographic
> > > goodies of
> > > > >>>> Markdown, code pretty printing and, best of all, the final
> result
> > > can be
> > > > >>>> easily browsed by anyone. Casual browsers do not have to
> install J
> > > to view
> > > > >>>> lab output.
> > > > >>>>
> > > > >>>> I would recommend all addon and lab authors to consider
> producing
> > > Jupyter
> > > > >>>> versions. It will help expose J's delights to wider audiences.
> > > > >>>>
> > > > >>>> Have a look:
> > > > >>>>
> > > > >>>>
> > >
> >
> https://github.com/bakerjd99/jod/blob/master/jodnotebooks/JOD%20Labs%20in%20Jupyter.ipynb
> > > > >>>>
> > > > >>>>
> > >
> >
> https://github.com/bakerjd99/jod/blob/master/jodnotebooks/JOD%20Introduction%20Lab.ipynb
> > > > >>>>
> > > > >>>>
> > >
> >
> https://github.com/bakerjd99/jod/blob/master/jodnotebooks/JOD%20Source%20Code%20Dump%20Scripts%20Lab.ipynb
> > > > >>>>
> > > > >>>>
> > >
> >
> https://github.com/bakerjd99/jod/blob/master/jodnotebooks/JOD%20Source%20Code%20Dump%20Scripts%20Lab.ipynb
> > > > >>>>
> > > > >>>> John Baker
> > > > >>>> J'ugglar at Large
> > > > >>>>
> > > > >>>>
> > > > >>>>
> > > > >>>>
> > > > >>>>
> > > > >>>>
> > > > >>>>
> > > > >>>> --
> > > > >>>> John D. Baker
> > > > >>>> bakerj...@gmail.com
> > > > >>>>
> > > ----------------------------------------------------------------------
> > > > >>>> For information about J forums see
> > > http://www.jsoftware.com/forums.htm
> > > > >>>
> > > ----------------------------------------------------------------------
> > > > >>> For information about J forums see
> > > http://www.jsoftware.com/forums.htm
> > > > >>
> > ----------------------------------------------------------------------
> > > > >> For information about J forums see
> > > http://www.jsoftware.com/forums.htm
> > > > >
> > ----------------------------------------------------------------------
> > > > > For information about J forums see
> > http://www.jsoftware.com/forums.htm
> > > >
> ----------------------------------------------------------------------
> > > > For information about J forums see
> http://www.jsoftware.com/forums.htm
> > > ----------------------------------------------------------------------
> > > For information about J forums see http://www.jsoftware.com/forums.htm
> > ----------------------------------------------------------------------
> > For information about J forums see http://www.jsoftware.com/forums.htm
>
>
>
> --
>
> Devon McCormick, CFA
>
> Quantitative Consultant
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to