Re: Please try @auto for Jupyter Notebooks

2018-04-10 Thread Edward K. Ream
On Tue, Apr 10, 2018 at 12:15 PM, Terry Brown wrote: > ​This may be yet another 2/3 difference. Try e912eeb67. > > Ok, no tracebacks, cool. > ​Great. Thanks for the confirmation. Edward -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsu

Re: Please try @auto for Jupyter Notebooks

2018-04-10 Thread Terry Brown
On Tue, 10 Apr 2018 11:40:36 -0500 "Edward K. Ream" wrote: > ​This may be yet another 2/3 difference. Try e912eeb67. Ok, no tracebacks, cool. Cheers -Terry -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and sto

Re: Please try @auto for Jupyter Notebooks

2018-04-10 Thread Edward K. Ream
On Tue, Apr 10, 2018 at 11:35 AM, Terry Brown wrote: Seems to work, but still a Traceback > ​ [TypeError]. > ​This may be yet another 2/3 difference. Try e912eeb67. Edward -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from th

Re: Please try @auto for Jupyter Notebooks

2018-04-10 Thread Terry Brown
On Tue, 10 Apr 2018 11:26:02 -0500 "Edward K. Ream" wrote: > > > > So it loaded, but with the Traceback I just posted. > > > ​Please try fb16c99b9. Seems to work, but still a Traceback Leo Log Window Leo 5.7.2 devel, build 20180408225138, Sun Apr 8 22:51:38 PDT 2018 Git repo info: branch =

Re: Please try @auto for Jupyter Notebooks

2018-04-10 Thread Edward K. Ream
> > So it loaded, but with the Traceback I just posted. ​Please try fb16c99b9. Edward -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails from it, send an email to leo-editor+unsubscr...@goo

Re: Please try @auto for Jupyter Notebooks

2018-04-10 Thread Edward K. Ream
On Tue, Apr 10, 2018 at 10:50 AM, Terry Brown wrote: > On Tue, 10 Apr 2018 10:49:27 -0500 > Terry Brown wrote: > > > conda says it was installed already. Current trunk 77b8c7d833 I'm > > getting > > but it did load the file now, so 77b8c7d833 must have helped. > ​Yeah, python 3 fixes a nasty i

Re: Please try @auto for Jupyter Notebooks

2018-04-10 Thread Terry Brown
On Tue, 10 Apr 2018 10:49:27 -0500 Terry Brown wrote: > conda says it was installed already. Current trunk 77b8c7d833 I'm > getting but it did load the file now, so 77b8c7d833 must have helped. So it loaded, but with the Traceback I just posted. Cheers -Terry -- You received this message be

Re: Please try @auto for Jupyter Notebooks

2018-04-10 Thread Terry Brown
On Tue, 10 Apr 2018 10:39:05 -0500 "Edward K. Ream" wrote: > On Tue, Apr 10, 2018 at 8:50 AM, Terry Brown > wrote: > > p.s. I also got > > ​[no children] in the @auto node, > > ​You won't get anything if nbformat can't be imported. I'll attempt a > clearer warning. > > Edward conda says it

Re: Please try @auto for Jupyter Notebooks

2018-04-10 Thread Edward K. Ream
On Tuesday, April 10, 2018 at 10:39:07 AM UTC-5, Edward K. Ream wrote: > > On Tue, Apr 10, 2018 at 8:50 AM, Terry Brown > wrote: > > p.s. I also got >> ​[no children] in the @auto node, >> > > ​You won't get anything if nbformat can't be imported. I'll attempt a > clearer warning. > 77b8c7d83

Re: Please try @auto for Jupyter Notebooks

2018-04-10 Thread Edward K. Ream
On Tue, Apr 10, 2018 at 8:50 AM, Terry Brown wrote: p.s. I also got > ​[no children] in the @auto node, > ​You won't get anything if nbformat can't be imported. I'll attempt a clearer warning. Edward -- You received this message because you are subscribed to the Google Groups "leo-editor" g

Re: Please try @auto for Jupyter Notebooks

2018-04-10 Thread Edward K. Ream
On Tue, Apr 10, 2018 at 8:48 AM, Terry Brown wrote: Traceback (most recent call last): > > File "/mnt/usr1/usr1/home/tbrown/t/Package/leo/git/leo-editor/ > leo/plugins/importers/ipynb.py", line 192, in parse > nb = nbformat.reads(payload, as_version=4) > ​Yeah, you have to have nbformat in

Re: Please try @auto for Jupyter Notebooks

2018-04-10 Thread Terry Brown
p.s. I also got this in the @auto node, @nocolor-node Note: This node's body text is ignored when writing this file. The @others directive is not required but no children. Not necessarily at the same time as the exception, the above might have come from refresh from disk, whereas the Traceback

Re: Please try @auto for Jupyter Notebooks

2018-04-10 Thread Terry Brown
On Tue, 10 Apr 2018 05:40:00 -0700 (PDT) "Edward K. Ream" wrote: > Please, please, give this a try and tell me what you think. Imo it > moots a lot of Jupyter-related work on Leo's to-do list. Well, my aspiration was not a better way to edit notebooks, but a way to execute code in a (possibly r

Re: Please try @auto for Jupyter Notebooks

2018-04-10 Thread Edward K. Ream
On Monday, April 9, 2018 at 9:30:37 AM UTC-5, Edward K. Ream wrote: Leo now supports @auto for Jupyter Notebook (.ipynb) files far better than > I expected two days ago. > Yeah, yesterday was Monday, but I'm surprised nobody has commented about how awesome this is ;-) Perhaps a lot of people d

Re: Please try @auto for Jupyter Notebooks

2018-04-10 Thread Edward K. Ream
On Monday, April 9, 2018 at 8:37:18 PM UTC-5, Edward K. Ream wrote: A new command, say insert-md-toc, would be better. It would insert the toc > at the cursor. > Recent revs replace the @toc hack with the insert-jupter-toc command. I spent more than an hour experimenting with what should be al

Re: Please try @auto for Jupyter Notebooks

2018-04-09 Thread Edward K. Ream
On Monday, April 9, 2018 at 5:03:19 PM UTC-5, Edward K. Ream wrote: > A few more tweaks are coming > Rev 8b2a11ae84 adds support for @toc. This is a useful hack. Inserting an @toc in a node causes the writer to insert a table of contents (in markdown format) at the start of the node before wr

Re: Please try @auto for Jupyter Notebooks

2018-04-09 Thread Edward K. Ream
On Monday, April 9, 2018 at 10:02:44 AM UTC-5, Edward K. Ream wrote: *Summary* > > Jupyter integration just keeps getting better and better. Straightforward > changes will: > > 1. Generate markdown section markup *automatically*, based on outline > level and headlines. > > 2. Allow code nodes to

Re: Please try @auto for Jupyter Notebooks

2018-04-09 Thread Edward K. Ream
On Monday, April 9, 2018 at 9:49:51 AM UTC-5, Edward K. Ream wrote: The present work seems complete. Please test and report any problems or > missing features. > The exporter can write # markup using headline for markdown nodes, and can write "leo_markup" metadata for code nodes. This will al

Re: Please try @auto for Jupyter Notebooks

2018-04-09 Thread Edward K. Ream
On Monday, April 9, 2018 at 9:30:37 AM UTC-5, Edward K. Ream wrote: I should investigate whether markdown # headlines work in Jupyter. > Jupyter does indeed support such titles, and rev 79affcd2d now supports them as well. The present work seems complete. Please test and report any problems or

Please try @auto for Jupyter Notebooks

2018-04-09 Thread Edward K. Ream
Leo now supports @auto for Jupyter Notebook (.ipynb) files far better than I expected two days ago. Yesterday's work drastically simplified the code. Today's work ensures that Leo writes .ipynb files that pass all Jupyter validation tests. This involved writing the proper JSON attributes at a