Re: program to use Lyx as a code-evaluating notebook

2012-05-30 Thread Allen Barker


I've set up a repo on github for the program.

The code:
https://github.com/abarker/lyxNotebook

For a quick overview, see the first section of the documentation:
https://github.com/abarker/lyxNotebook/blob/master/lyxNotebookDocs.pdf




Re: program to use Lyx as a code-evaluating notebook

2012-05-30 Thread Pavel Sanda
Allen Barker wrote:

 I've set up a repo on github for the program.

It maight be goo to add note to http://wiki.lyx.org/Tools/Tools
P


Re: program to use Lyx as a code-evaluating notebook

2012-05-30 Thread Nico Williams
On Wed, May 30, 2012 at 11:24 AM, Allen Barker allen.l.bar...@gmail.com wrote:
 I've set up a repo on github for the program.

 The code:
 https://github.com/abarker/lyxNotebook

 For a quick overview, see the first section of the documentation:
 https://github.com/abarker/lyxNotebook/blob/master/lyxNotebookDocs.pdf

I looked at the README and I get it.  This is very much like the
weaver tool, that lets you compile statistics using R right in the LyX
document.  But yours is more generic.  The idea is very cool.  I
second the sentiment that this should be added to the tools wiki page.

Nico

PS: I have no use for this right now, but I'll keep it in mind.  One
use that comes to mind is using this approach to automatically test
code samples in a book, but that would need a way to request that code
be tested but output not included in the document.


Re: program to use Lyx as a code-evaluating notebook

2012-05-30 Thread Allen Barker

On 05/30/2012 04:06 PM, Pavel Sanda wrote:

Allen Barker wrote:


I've set up a repo on github for the program.


It maight be goo to add note to http://wiki.lyx.org/Tools/Tools
P


Thanks, I've added a note to that list.




Re: program to use Lyx as a code-evaluating notebook

2012-05-30 Thread Allen Barker

On 05/30/2012 05:32 PM, Nico Williams wrote:

On Wed, May 30, 2012 at 11:24 AM, Allen Barkerallen.l.bar...@gmail.com  wrote:

I've set up a repo on github for the program.

The code:
https://github.com/abarker/lyxNotebook

For a quick overview, see the first section of the documentation:
https://github.com/abarker/lyxNotebook/blob/master/lyxNotebookDocs.pdf


I looked at the README and I get it.  This is very much like the
weaver tool, that lets you compile statistics using R right in the LyX
document.  But yours is more generic.  The idea is very cool.  I
second the sentiment that this should be added to the tools wiki page.

Nico

PS: I have no use for this right now, but I'll keep it in mind.  One
use that comes to mind is using this approach to automatically test
code samples in a book, but that would need a way to request that code
be tested but output not included in the document.


The printing of cells of various types can be suppressed
by including a Latex command in the preamble or in an ERT.
To suppress printing of output cells for Python 2, for
example, you would add \lyxNotebookPrintOffOutputPythonTwo.
(The current implementation then uses \let to redefine
those cells to be Verbatim comment blocks.)





Re: program to use Lyx as a code-evaluating notebook

2012-05-30 Thread Allen Barker


I've set up a repo on github for the program.

The code:
https://github.com/abarker/lyxNotebook

For a quick overview, see the first section of the documentation:
https://github.com/abarker/lyxNotebook/blob/master/lyxNotebookDocs.pdf




Re: program to use Lyx as a code-evaluating notebook

2012-05-30 Thread Pavel Sanda
Allen Barker wrote:

 I've set up a repo on github for the program.

It maight be goo to add note to http://wiki.lyx.org/Tools/Tools
P


Re: program to use Lyx as a code-evaluating notebook

2012-05-30 Thread Nico Williams
On Wed, May 30, 2012 at 11:24 AM, Allen Barker allen.l.bar...@gmail.com wrote:
 I've set up a repo on github for the program.

 The code:
 https://github.com/abarker/lyxNotebook

 For a quick overview, see the first section of the documentation:
 https://github.com/abarker/lyxNotebook/blob/master/lyxNotebookDocs.pdf

I looked at the README and I get it.  This is very much like the
weaver tool, that lets you compile statistics using R right in the LyX
document.  But yours is more generic.  The idea is very cool.  I
second the sentiment that this should be added to the tools wiki page.

Nico

PS: I have no use for this right now, but I'll keep it in mind.  One
use that comes to mind is using this approach to automatically test
code samples in a book, but that would need a way to request that code
be tested but output not included in the document.


Re: program to use Lyx as a code-evaluating notebook

2012-05-30 Thread Allen Barker

On 05/30/2012 04:06 PM, Pavel Sanda wrote:

Allen Barker wrote:


I've set up a repo on github for the program.


It maight be goo to add note to http://wiki.lyx.org/Tools/Tools
P


Thanks, I've added a note to that list.




Re: program to use Lyx as a code-evaluating notebook

2012-05-30 Thread Allen Barker

On 05/30/2012 05:32 PM, Nico Williams wrote:

On Wed, May 30, 2012 at 11:24 AM, Allen Barkerallen.l.bar...@gmail.com  wrote:

I've set up a repo on github for the program.

The code:
https://github.com/abarker/lyxNotebook

For a quick overview, see the first section of the documentation:
https://github.com/abarker/lyxNotebook/blob/master/lyxNotebookDocs.pdf


I looked at the README and I get it.  This is very much like the
weaver tool, that lets you compile statistics using R right in the LyX
document.  But yours is more generic.  The idea is very cool.  I
second the sentiment that this should be added to the tools wiki page.

Nico

PS: I have no use for this right now, but I'll keep it in mind.  One
use that comes to mind is using this approach to automatically test
code samples in a book, but that would need a way to request that code
be tested but output not included in the document.


The printing of cells of various types can be suppressed
by including a Latex command in the preamble or in an ERT.
To suppress printing of output cells for Python 2, for
example, you would add \lyxNotebookPrintOffOutputPythonTwo.
(The current implementation then uses \let to redefine
those cells to be Verbatim comment blocks.)





Re: program to use Lyx as a code-evaluating notebook

2012-05-30 Thread Allen Barker


I've set up a repo on github for the program.

The code:
https://github.com/abarker/lyxNotebook

For a quick overview, see the first section of the documentation:
https://github.com/abarker/lyxNotebook/blob/master/lyxNotebookDocs.pdf




Re: program to use Lyx as a code-evaluating notebook

2012-05-30 Thread Pavel Sanda
Allen Barker wrote:
>
> I've set up a repo on github for the program.

It maight be goo to add note to http://wiki.lyx.org/Tools/Tools
P


Re: program to use Lyx as a code-evaluating notebook

2012-05-30 Thread Nico Williams
On Wed, May 30, 2012 at 11:24 AM, Allen Barker  wrote:
> I've set up a repo on github for the program.
>
> The code:
> https://github.com/abarker/lyxNotebook
>
> For a quick overview, see the first section of the documentation:
> https://github.com/abarker/lyxNotebook/blob/master/lyxNotebookDocs.pdf

I looked at the README and I get it.  This is very much like the
weaver tool, that lets you compile statistics using R right in the LyX
document.  But yours is more generic.  The idea is very cool.  I
second the sentiment that this should be added to the tools wiki page.

Nico

PS: I have no use for this right now, but I'll keep it in mind.  One
use that comes to mind is using this approach to automatically test
code samples in a book, but that would need a way to request that code
be tested but output not included in the document.


Re: program to use Lyx as a code-evaluating notebook

2012-05-30 Thread Allen Barker

On 05/30/2012 04:06 PM, Pavel Sanda wrote:

Allen Barker wrote:


I've set up a repo on github for the program.


It maight be goo to add note to http://wiki.lyx.org/Tools/Tools
P


Thanks, I've added a note to that list.




Re: program to use Lyx as a code-evaluating notebook

2012-05-30 Thread Allen Barker

On 05/30/2012 05:32 PM, Nico Williams wrote:

On Wed, May 30, 2012 at 11:24 AM, Allen Barker  wrote:

I've set up a repo on github for the program.

The code:
https://github.com/abarker/lyxNotebook

For a quick overview, see the first section of the documentation:
https://github.com/abarker/lyxNotebook/blob/master/lyxNotebookDocs.pdf


I looked at the README and I get it.  This is very much like the
weaver tool, that lets you compile statistics using R right in the LyX
document.  But yours is more generic.  The idea is very cool.  I
second the sentiment that this should be added to the tools wiki page.

Nico

PS: I have no use for this right now, but I'll keep it in mind.  One
use that comes to mind is using this approach to automatically test
code samples in a book, but that would need a way to request that code
be tested but output not included in the document.


The printing of cells of various types can be suppressed
by including a Latex command in the preamble or in an ERT.
To suppress printing of output cells for Python 2, for
example, you would add \lyxNotebookPrintOffOutputPythonTwo.
(The current implementation then uses \let to redefine
those cells to be Verbatim comment blocks.)





Re: program to use Lyx as a code-evaluating notebook

2012-05-29 Thread Allen Barker

On 05/28/2012 09:34 AM, Richard Heck wrote:

On 05/27/2012 09:56 PM, Allen Barker wrote:


The program is currently ~800K tarred and zipped,
including documentation. If anyone here is interested
in trying it out I can send copies out by email (unless
someone suggests a better way to distribute copies at
this stage).


If you're at all serious about this program, then I'd suggest
you create a git repo for it somewhere like gitorious, and
then people can have easy access, as well as follow the
changes you're making. List it as pre-alpha or whatever,
and people know what they're getting.


OK, thanks.  I'll look into setting up a git repo somewhere
and re-post when I get things set up.





Re: program to use Lyx as a code-evaluating notebook

2012-05-29 Thread Guenter Milde
On 2012-05-28, Allen Barker wrote:

 I've written a Python program which I'm calling
 Lyx Notebook.  It interacts with Lyx (via the Lyx
 server) to allow it to be used as a code-evaluating
 notebook (similar to Mathematica notebooks or the
 Sage notebook).  It's still at an early stage, but
 I already find it useful.

Sounds interesting.

I wonder whether the project might gain from the PyClient
Python package that provides a pythonic interface to LyX.
http://wiki.lyx.org/Tools/PyClient

Günter



Re: program to use Lyx as a code-evaluating notebook

2012-05-29 Thread Allen Barker

On 05/29/2012 03:29 AM, Guenter Milde wrote:

On 2012-05-28, Allen Barker wrote:


I've written a Python program which I'm calling
Lyx Notebook.  It interacts with Lyx (via the Lyx
server) to allow it to be used as a code-evaluating
notebook (similar to Mathematica notebooks or the
Sage notebook).  It's still at an early stage, but
I already find it useful.


Sounds interesting.

I wonder whether the project might gain from the PyClient
Python package that provides a pythonic interface to LyX.
http://wiki.lyx.org/Tools/PyClient


That package might have been useful.  I think I came
across that page, but I wasn't sure if the package was
still operational since it hadn't been updated for a
few years.  Since I was playing around with the Lyx server
pipes anyway, I ended up just implementing things from
scratch.




Re: program to use Lyx as a code-evaluating notebook

2012-05-29 Thread Nico Williams
On Mon, May 28, 2012 at 8:34 AM, Richard Heck rgh...@comcast.net wrote:
 If you're at all serious about this program, then I'd suggest
 you create a git repo for it somewhere like gitorious, and
 then people can have easy access, as well as follow the
 changes you're making. List it as pre-alpha or whatever,
 and people know what they're getting.

+1

Git has become my preferred downloader for these sorts of things.
There's a number of git service providers (github, gitorious, ...),
and you can always host your own.

Nico
--


Re: program to use Lyx as a code-evaluating notebook

2012-05-29 Thread Allen Barker

On 05/28/2012 09:34 AM, Richard Heck wrote:

On 05/27/2012 09:56 PM, Allen Barker wrote:


The program is currently ~800K tarred and zipped,
including documentation. If anyone here is interested
in trying it out I can send copies out by email (unless
someone suggests a better way to distribute copies at
this stage).


If you're at all serious about this program, then I'd suggest
you create a git repo for it somewhere like gitorious, and
then people can have easy access, as well as follow the
changes you're making. List it as pre-alpha or whatever,
and people know what they're getting.


OK, thanks.  I'll look into setting up a git repo somewhere
and re-post when I get things set up.





Re: program to use Lyx as a code-evaluating notebook

2012-05-29 Thread Guenter Milde
On 2012-05-28, Allen Barker wrote:

 I've written a Python program which I'm calling
 Lyx Notebook.  It interacts with Lyx (via the Lyx
 server) to allow it to be used as a code-evaluating
 notebook (similar to Mathematica notebooks or the
 Sage notebook).  It's still at an early stage, but
 I already find it useful.

Sounds interesting.

I wonder whether the project might gain from the PyClient
Python package that provides a pythonic interface to LyX.
http://wiki.lyx.org/Tools/PyClient

Günter



Re: program to use Lyx as a code-evaluating notebook

2012-05-29 Thread Allen Barker

On 05/29/2012 03:29 AM, Guenter Milde wrote:

On 2012-05-28, Allen Barker wrote:


I've written a Python program which I'm calling
Lyx Notebook.  It interacts with Lyx (via the Lyx
server) to allow it to be used as a code-evaluating
notebook (similar to Mathematica notebooks or the
Sage notebook).  It's still at an early stage, but
I already find it useful.


Sounds interesting.

I wonder whether the project might gain from the PyClient
Python package that provides a pythonic interface to LyX.
http://wiki.lyx.org/Tools/PyClient


That package might have been useful.  I think I came
across that page, but I wasn't sure if the package was
still operational since it hadn't been updated for a
few years.  Since I was playing around with the Lyx server
pipes anyway, I ended up just implementing things from
scratch.




Re: program to use Lyx as a code-evaluating notebook

2012-05-29 Thread Nico Williams
On Mon, May 28, 2012 at 8:34 AM, Richard Heck rgh...@comcast.net wrote:
 If you're at all serious about this program, then I'd suggest
 you create a git repo for it somewhere like gitorious, and
 then people can have easy access, as well as follow the
 changes you're making. List it as pre-alpha or whatever,
 and people know what they're getting.

+1

Git has become my preferred downloader for these sorts of things.
There's a number of git service providers (github, gitorious, ...),
and you can always host your own.

Nico
--


Re: program to use Lyx as a code-evaluating notebook

2012-05-29 Thread Allen Barker

On 05/28/2012 09:34 AM, Richard Heck wrote:

On 05/27/2012 09:56 PM, Allen Barker wrote:


The program is currently ~800K tarred and zipped,
including documentation. If anyone here is interested
in trying it out I can send copies out by email (unless
someone suggests a better way to distribute copies at
this stage).


If you're at all serious about this program, then I'd suggest
you create a git repo for it somewhere like gitorious, and
then people can have easy access, as well as follow the
changes you're making. List it as pre-alpha or whatever,
and people know what they're getting.


OK, thanks.  I'll look into setting up a git repo somewhere
and re-post when I get things set up.





Re: program to use Lyx as a code-evaluating notebook

2012-05-29 Thread Guenter Milde
On 2012-05-28, Allen Barker wrote:

> I've written a Python program which I'm calling
> Lyx Notebook.  It interacts with Lyx (via the Lyx
> server) to allow it to be used as a code-evaluating
> notebook (similar to Mathematica notebooks or the
> Sage notebook).  It's still at an early stage, but
> I already find it useful.

Sounds interesting.

I wonder whether the project might gain from the PyClient
Python package that provides a "pythonic" interface to LyX.
http://wiki.lyx.org/Tools/PyClient

Günter



Re: program to use Lyx as a code-evaluating notebook

2012-05-29 Thread Allen Barker

On 05/29/2012 03:29 AM, Guenter Milde wrote:

On 2012-05-28, Allen Barker wrote:


I've written a Python program which I'm calling
Lyx Notebook.  It interacts with Lyx (via the Lyx
server) to allow it to be used as a code-evaluating
notebook (similar to Mathematica notebooks or the
Sage notebook).  It's still at an early stage, but
I already find it useful.


Sounds interesting.

I wonder whether the project might gain from the PyClient
Python package that provides a "pythonic" interface to LyX.
http://wiki.lyx.org/Tools/PyClient


That package might have been useful.  I think I came
across that page, but I wasn't sure if the package was
still operational since it hadn't been updated for a
few years.  Since I was playing around with the Lyx server
pipes anyway, I ended up just implementing things from
scratch.




Re: program to use Lyx as a code-evaluating notebook

2012-05-29 Thread Nico Williams
On Mon, May 28, 2012 at 8:34 AM, Richard Heck  wrote:
> If you're at all serious about this program, then I'd suggest
> you create a git repo for it somewhere like gitorious, and
> then people can have easy access, as well as follow the
> changes you're making. List it as pre-alpha or whatever,
> and people know what they're getting.

+1

Git has become my preferred downloader for these sorts of things.
There's a number of git service providers (github, gitorious, ...),
and you can always host your own.

Nico
--


Re: program to use Lyx as a code-evaluating notebook

2012-05-28 Thread Richard Heck

On 05/27/2012 09:56 PM, Allen Barker wrote:


The program is currently ~800K tarred and zipped,
including documentation.  If anyone here is interested
in trying it out I can send copies out by email (unless
someone suggests a better way to distribute copies at
this stage).


If you're at all serious about this program, then I'd suggest
you create a git repo for it somewhere like gitorious, and
then people can have easy access, as well as follow the
changes you're making. List it as pre-alpha or whatever,
and people know what they're getting.

Richard




Re: program to use Lyx as a code-evaluating notebook

2012-05-28 Thread Richard Heck

On 05/27/2012 09:56 PM, Allen Barker wrote:


The program is currently ~800K tarred and zipped,
including documentation.  If anyone here is interested
in trying it out I can send copies out by email (unless
someone suggests a better way to distribute copies at
this stage).


If you're at all serious about this program, then I'd suggest
you create a git repo for it somewhere like gitorious, and
then people can have easy access, as well as follow the
changes you're making. List it as pre-alpha or whatever,
and people know what they're getting.

Richard




Re: program to use Lyx as a code-evaluating notebook

2012-05-28 Thread Richard Heck

On 05/27/2012 09:56 PM, Allen Barker wrote:


The program is currently ~800K tarred and zipped,
including documentation.  If anyone here is interested
in trying it out I can send copies out by email (unless
someone suggests a better way to distribute copies at
this stage).


If you're at all serious about this program, then I'd suggest
you create a git repo for it somewhere like gitorious, and
then people can have easy access, as well as follow the
changes you're making. List it as pre-alpha or whatever,
and people know what they're getting.

Richard