Re: Python-generated diagram as external material

2010-03-12 Thread Julien Rioux
John K john...@... writes: OK I tried this. I defined a new Python file format with extension .py in Lyx, and then created a Python - PDF (pdflatex) converter that runs the command: python $$i $$o But when I try exporting the document to PDF I get the following error: No information for

Re: Python-generated diagram as external material

2010-03-12 Thread Julien Rioux
John K john...@... writes: OK I tried this. I defined a new Python file format with extension .py in Lyx, and then created a Python - PDF (pdflatex) converter that runs the command: python $$i $$o But when I try exporting the document to PDF I get the following error: No information for

RE: Python-generated diagram as external material

2010-03-12 Thread John K
>> I added the following to the Lyx external_templates file: >> >> Template Python >> GuiName "Python: $$AbsOrRelPathParent$$Basename" >> HelpText >> Python diagram. >> HelpTextEnd >> InputFormat "*" > > I think you need to define an input format and a .py -> .pdf converter which > runs the

Re: Python-generated diagram as "external material"

2010-03-12 Thread Julien Rioux
John K writes: > OK I tried this. I defined a new Python file format with extension .py in Lyx, and then created a Python -> PDF > (pdflatex) converter that runs the command: > > python $$i $$o > > But when I try exporting the document to PDF I get the following error: > > "No

RE: Python-generated diagram as external material

2010-03-11 Thread John K
John K wrote: I am trying to auto-generate a diagram from a Python script in my Lyx document using the External Material function. I have created a Python script called myscript.py which generates a diagram and saves it to myscript.pdf. I am trying to make Lyx run my script to

RE: Python-generated diagram as external material

2010-03-11 Thread John K
John K wrote: I am trying to auto-generate a diagram from a Python script in my Lyx document using the External Material function. I have created a Python script called myscript.py which generates a diagram and saves it to myscript.pdf. I am trying to make Lyx run my script to

RE: Python-generated diagram as "external material"

2010-03-11 Thread John K
> John K wrote: >> >> >> I am trying to auto-generate a diagram from a Python script in my Lyx >> document using the "External Material" function. I have created a Python >> script called "myscript.py" which generates a diagram and saves it to >> "myscript.pdf". I am trying to make Lyx run

RE: Python-generated diagram as external material

2010-03-11 Thread John K
> John K writes: >> I added the following to the Lyx external_templates file: >> >> Template Python >> GuiName "Python: $$AbsOrRelPathParent$$Basename" >> HelpText >> Python diagram. >> HelpTextEnd >> InputFormat "*" > > I think you need to define an input format and a .py -> .pdf converter

Re: Python-generated diagram as external material

2010-03-11 Thread Guenter Milde
On 2010-03-11, John K wrote: >> I think you need to define an input format and a .py -> .pdf converter which >> runs the python interpreter on your file. This is an alternative way to the "external inset". ... >> Try the way I described above: defining the file format and converter >> under

Re: Python-generated diagram as external material

2010-03-10 Thread Helge Hafting
John K wrote: I am trying to auto-generate a diagram from a Python script in my Lyx document using the External Material function. I have created a Python script called myscript.py which generates a diagram and saves it to myscript.pdf. I am trying to make Lyx run my script to generate the

Re: Python-generated diagram as external material

2010-03-10 Thread Helge Hafting
John K wrote: I am trying to auto-generate a diagram from a Python script in my Lyx document using the External Material function. I have created a Python script called myscript.py which generates a diagram and saves it to myscript.pdf. I am trying to make Lyx run my script to generate the

Re: Python-generated diagram as "external material"

2010-03-10 Thread Helge Hafting
John K wrote: I am trying to auto-generate a diagram from a Python script in my Lyx document using the "External Material" function. I have created a Python script called "myscript.py" which generates a diagram and saves it to "myscript.pdf". I am trying to make Lyx run my script to generate

Re: Python-generated diagram as external material

2010-03-10 Thread Julien Rioux
John K writes: > I added the following to the Lyx external_templates file: > > Template Python > GuiName "Python: $$AbsOrRelPathParent$$Basename" > HelpText > Python diagram. > HelpTextEnd > InputFormat "*" I think you need to define an input format and a .py -> .pdf converter