Re: Rev 8ec811ac merges a much improved .ipynb importer/exporter into devel

2018-04-08 Thread Edward K. Ream
On Sunday, April 8, 2018 at 5:09:12 AM UTC-5, Edward K. Ream wrote:

The new code completes #838 
> : Better .ipynb 
> importer/exporter.
>

The importer/exporter terminology may hide the real story.  The new code 
supports @auto x.ipynb.  This is the easy way to share jupyter notebooks 
between Leo and the Jupyter web client.

At present, the code does not save/restore gnx's, so clones are not 
preserved.  However, the jupyter "metadata" fields could hold such 
data.It's on the list.  Similarly, it would be possible to save/restore 
marks.

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...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: Rev 8ec811ac merges a much improved .ipynb importer/exporter into devel

2018-04-08 Thread Edward K. Ream
On Sun, Apr 8, 2018 at 8:23 AM, lewis  wrote:

AttributeError: 'Import_IPYNB' object has no attribute 'get_file_name'
>

​Thanks for this report.  This was fixed several hours ago.

The latest rev reads/writes the "collapsed" metadata attribute as a JSON
boolean, not a string.  With this change, ​

​the written results are valid Jupyter notebooks that don't raise any
warnings.  This is the acid test.

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...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: Rev 8ec811ac merges a much improved .ipynb importer/exporter into devel

2018-04-08 Thread lewis
In a new leo file I tried Import Files> Import Jupyter notebook

Leo Log Window
Leo 5.7.2 devel, build 20180402204423, Mon Apr 2 20:44:23 CDT 2018
Git repo info: branch = devel, commit = 8ec811ac8fb9
Python 3.6.5, PyQt version 5.10.1
Windows 10 AMD64 (build 10.0.16299) SP0
isPython3: True
caching enabled
Traceback (most recent call last):

File "N:\git\leo-editor\leo\core\leoGlobals.py", line 2496, in 
new_cmd_wrapper
func(self, event=event)

File "N:\git\leo-editor\leo\commands\convertCommands.py", line 1666, in 
importJupyterNotebook
fn = x.get_file_name()

AttributeError: 'Import_IPYNB' object has no attribute 'get_file_name'

Regards
Lewis

-- 
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...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.