first of all I would like to thank all of you for providing pida.
When I found it I thought, wow, this can be also useful for writing reports or slides with latex. Especially for slides and math formulae a preview is useful and so I have written a proof of concept plugin (the usual Sunday afternoon hack) for displaying a pdf preview. The pdf previewer is based on python-poppler (the one from launchbox). When a document is saved the previewer compiles the code using rubber.
On Mon, 2007-12-31 at 23:12 +0100, Tobias Eberle wrote: > Hello,
> first of all I would like to thank all of you for providing pida.
> When I found it I thought, wow, this can be also useful for writing > reports or slides with latex. Especially for slides and math formulae a > preview is useful and so I have written a proof of concept plugin (the > usual Sunday afternoon hack) for displaying a pdf preview. The pdf > previewer is based on python-poppler (the one from launchbox). When a > document is saved the previewer compiles the code using rubber.
Hi, this is great work, thanks. You should publish the plugin on the PIDA site using the built-in PIDA plugin publisher. Then anyone can install from within PIDA.
> Hi, this is great work, thanks. You should publish the plugin on the > PIDA site using the built-in PIDA plugin publisher. Then anyone can > install from within PIDA.
I will do after a bit of rewrite because the pdf file it currently displays is hard coded ;-)
I guess there is a way to get a list of execution controllers. Can you give me a hint how?
On Fri, 2008-01-04 at 20:07 +0100, Tobias Eberle wrote: > Hi,
> [pdf preview plugin] > > Hi, this is great work, thanks. You should publish the plugin on the > > PIDA site using the built-in PIDA plugin publisher. Then anyone can > > install from within PIDA.
> I will do after a bit of rewrite because the pdf file it currently > displays is hard coded ;-)
> I guess there is a way to get a list of execution controllers. Can you > give me a hint how?
There are very few, so you will probably end up writing your own, or maybe the generic execution is enough. To list them open the PIDA internal shell, (shift-control-m default keypress) and use:
>>> from pida.core.interfaces import IProjectController >>> list(boss.get_service('project').features(IProjectController))
On Jan 5, 2:01 am, Ali Afshar <aafs...@gmail.com> wrote:
> On Fri, 2008-01-04 at 20:07 +0100, Tobias Eberle wrote:
> > Hi,
> > [pdf preview plugin]
> > > Hi, this is great work, thanks. You should publish the plugin on the
> > > PIDA site using the built-in PIDA plugin publisher. Then anyone can
> > > install from within PIDA.
Yes, please, I'd love to be able to use it! I currently use a terminal
to compile the tex file and launch evince to see the pdf. :S
> first of all I would like to thank all of you for providing pida.
> When I found it I thought, wow, this can be also useful for writing
> reports or slides with latex. Especially for slides and math formulae a
> preview is useful and so I have written a proof of concept plugin (the
> usual Sunday afternoon hack) for displaying a pdf preview. The pdf
> previewer is based on python-poppler (the one from launchbox). When a
> document is saved the previewer compiles the code using rubber.
> first of all I would like to thank all of you for providing pida.
> When I found it I thought, wow, this can be also useful for writing
> reports or slides with latex. Especially for slides and math formulae a
> preview is useful and so I have written a proof of concept plugin (the
> usual Sunday afternoon hack) for displaying a pdf preview. The pdf
> previewer is based on python-poppler (the one from launchbox). When a
> document is saved the previewer compiles the code using rubber.
The filename of the file that is to be compiled and the filename of the pdf are both hard-coded. You have to edit pdftex_preview/pdftex_preview.py und change both filenames to your needs. It's line 24 and 25 you have to edit.
The controller combobox does currently nothing (except of displaying a list of existing controllers).
There is at least one bug in pida that has to be fixed before there will be a final release, so there is no plan for a release yet. Please feel free to send me comments and improvement suggestions. (The plan is to write a new controller type for compiling latex documents. In the preview panel you will be able to choose a controller that is used to compile the document and also contains the filename of the pdf.)
On Wed, 2008-01-16 at 04:28 -0800, flashbus...@gmail.com wrote: > wow, this looks awesome! > Are there any plan, when this will be released? > I'll start writing my diploma next month and this would be some great > thing.
> On Dec 31 2007, 11:12 pm, Tobias Eberle <tobias.ebe...@gmx.de> wrote: > > Hello,
> > first of all I would like to thank all of you for providing pida.
> > When I found it I thought, wow, this can be also useful for writing > > reports or slides with latex. Especially for slides and math formulae a > > preview is useful and so I have written a proof of concept plugin (the > > usual Sunday afternoon hack) for displaying a pdf preview. The pdf > > previewer is based on python-poppler (the one from launchbox). When a > > document is saved the previewer compiles the code using rubber.
> The filename of the file that is to be compiled and the filename of the
> pdf are both hard-coded. You have to edit
> pdftex_preview/pdftex_preview.py und change both filenames to your
> needs. It's line 24 and 25 you have to edit.
> The controller combobox does currently nothing (except of displaying a
> list of existing controllers).
> There is at least one bug in pida that has to be fixed before there will
> be a final release, so there is no plan for a release yet. Please feel
> free to send me comments and improvement suggestions.
> (The plan is to write a new controller type for compiling latex
> documents. In the preview panel you will be able to choose a controller
> that is used to compile the document and also contains the filename of
> the pdf.)
> Best wishes,
> Tobias
> On Wed, 2008-01-16 at 04:28 -0800, flashbus...@gmail.com wrote:
> > wow, this looks awesome!
> > Are there any plan, when this will be released?
> > I'll start writing my diploma next month and this would be some great
> > thing.
> > On Dec 31 2007, 11:12 pm, Tobias Eberle <tobias.ebe...@gmx.de> wrote:
> > > Hello,
> > > first of all I would like to thank all of you for providing pida.
> > > When I found it I thought, wow, this can be also useful for writing
> > > reports or slides with latex. Especially for slides and math formulae a
> > > preview is useful and so I have written a proof of concept plugin (the
> > > usual Sunday afternoon hack) for displaying a pdf preview. The pdf
> > > previewer is based on python-poppler (the one from launchbox). When a
> > > document is saved the previewer compiles the code using rubber.
I also forgot to mention that the plugin uses "rubber" to compile the pdf. In Ubuntu you can install it as a package. Otherwise you can change the corresponding source line to use pdftex directly.
I've just download poppler-python-0.6-experimental but after the ./
autogen.sh
I've got the following error:
checking for python extension module directory... ${exec_prefix}/lib/
python2.5/site-packages
checking for headers required to compile python extensions... not
found
configure: error: could not find Python headers
I'm sorry but I don't know what to do now, some python headers are
missing but which ones ?
Anyway if sombody can help me ...
Thanks
Francois
On Jan 19, 12:18 am, Tobias Eberle <tobias.ebe...@gmx.de> wrote:
> I also forgot to mention that the plugin uses "rubber" to compile the
> pdf. In Ubuntu you can install it as a package. Otherwise you can change
> the corresponding source line to use pdftex directly.
> I've just download poppler-python-0.6-experimental but after the ./ > autogen.sh > I've got the following error:
> checking for python extension module directory... ${exec_prefix}/lib/ > python2.5/site-packages > checking for headers required to compile python extensions... not > found > configure: error: could not find Python headers
> I'm sorry but I don't know what to do now, some python headers are > missing but which ones ? > Anyway if sombody can help me ...
> On Jan 19, 12:18 am, Tobias Eberle <tobias.ebe...@gmx.de> wrote:
>> Hi,
>>> oh, I forgot to mention it :)
>> I also forgot to mention that the plugin uses "rubber" to compile the >> pdf. In Ubuntu you can install it as a package. Otherwise you can change >> the corresponding source line to use pdftex directly.
I've downloaded python-dev and some more packages and was able to
compile python-poppler
But when I enable pdftex preview plugin I've some error messages (see
below)
Traceback (most recent call last):
File "/home/beaubert/PIDA-0.5.1/pida/services/optionsmanager/
optionsmanager.py", line 138, in on_service_combo__content_changed
if not svc.servicename in self._service_pages:
AttributeError: 'NoneType' object has no attribute 'servicename'
Traceback (most recent call last):
File "/home/beaubert/PIDA-0.5.1/pida/services/optionsmanager/
optionsmanager.py", line 138, in on_service_combo__content_changed
if not svc.servicename in self._service_pages:
AttributeError: 'NoneType' object has no attribute 'servicename'
Traceback (most recent call last):
File "/home/beaubert/PIDA-0.5.1/pida/services/optionsmanager/
optionsmanager.py", line 138, in on_service_combo__content_changed
if not svc.servicename in self._service_pages:
AttributeError: 'NoneType' object has no attribute 'servicename'
Traceback (most recent call last):
File "/home/beaubert/PIDA-0.5.1/pida/services/optionsmanager/
optionsmanager.py", line 138, in on_service_combo__content_changed
if not svc.servicename in self._service_pages:
AttributeError: 'NoneType' object has no attribute 'servicename'
Traceback (most recent call last):
File "/home/beaubert/PIDA-0.5.1/pida/services/optionsmanager/
optionsmanager.py", line 138, in on_service_combo__content_changed
if not svc.servicename in self._service_pages:
AttributeError: 'NoneType' object has no attribute 'servicename'
Traceback (most recent call last):
File "/home/beaubert/PIDA-0.5.1/pida/services/optionsmanager/
optionsmanager.py", line 138, in on_service_combo__content_changed
if not svc.servicename in self._service_pages:
AttributeError: 'NoneType' object has no attribute 'servicename'
Traceback (most recent call last):
File "/home/beaubert/PIDA-0.5.1/pida/services/optionsmanager/
optionsmanager.py", line 138, in on_service_combo__content_changed
if not svc.servicename in self._service_pages:
AttributeError: 'NoneType' object has no attribute 'servicename'
Traceback (most recent call last):
File "/home/beaubert/PIDA-0.5.1/pida/services/optionsmanager/
optionsmanager.py", line 138, in on_service_combo__content_changed
if not svc.servicename in self._service_pages:
AttributeError: 'NoneType' object has no attribute 'servicename'
Traceback (most recent call last):
File "/home/beaubert/PIDA-0.5.1/pida/services/optionsmanager/
optionsmanager.py", line 138, in on_service_combo__content_changed
if not svc.servicename in self._service_pages:
AttributeError: 'NoneType' object has no attribute 'servicename'
Traceback (most recent call last):
File "/home/beaubert/PIDA-0.5.1/pida/services/optionsmanager/
optionsmanager.py", line 138, in on_service_combo__content_changed
if not svc.servicename in self._service_pages:
AttributeError: 'NoneType' object has no attribute 'servicename'
Traceback (most recent call last):
File "/home/beaubert/PIDA-0.5.1/pida/services/optionsmanager/
optionsmanager.py", line 138, in on_service_combo__content_changed
if not svc.servicename in self._service_pages:
AttributeError: 'NoneType' object has no attribute 'servicename'
Error: Couldn't open file '/home/tobias/studium/9.semester_ws_07_08/
parallele_verteilte_Dateisysteme/Ceph/ceph.pdf'
Traceback (most recent call last):
File "/home/beaubert/PIDA-0.5.1/pida/services/plugins/plugins.py",
line 249, in on_installed_list__cell_edited
success = self.svc.start_plugin(item.directory)
File "/home/beaubert/PIDA-0.5.1/pida/services/plugins/plugins.py",
line 404, in start_plugin
plugin = self.boss.start_plugin(plugin_path)
File "/home/beaubert/PIDA-0.5.1/pida/core/boss.py", line 98, in
start_plugin
return self._sm.start_plugin(plugin_path)
File "/home/beaubert/PIDA-0.5.1/pida/core/servicemanager.py", line
162, in start_plugin
plugin.start()
File "/home/beaubert/.pida2/plugins/pdftex_preview/
pdftex_preview.py", line 193, in start
self._view = PdfTexPreviewView(self)
File "/home/beaubert/PIDA-0.5.1/pida/ui/views.py", line 119, in
__init__
self.create_ui()
File "/home/beaubert/.pida2/plugins/pdftex_preview/
pdftex_preview.py", line 78, in create_ui
self.load_document(PDF_Filename)
File "/home/beaubert/.pida2/plugins/pdftex_preview/
pdftex_preview.py", line 83, in load_document
self.document = poppler.document_new_from_file(uri, None)
gobject.GError: Failed to load document from data (error 1)'
Traceback (most recent call last):
File "/home/beaubert/.pida2/plugins/pdftex_preview/
pdftex_preview.py", line 152, in on_show_pdftex_preview
self.svc.show_pdftex_preview()
File "/home/beaubert/.pida2/plugins/pdftex_preview/
pdftex_preview.py", line 196, in show_pdftex_preview
self.boss.cmd('window', 'add_view', paned='Plugin',
view=self._view)
AttributeError: 'PdfTexPreview' object has no attribute '_view'
What's wrong wwith my config ?
if someone as an idea ...
Any thank you Ali and Tobias for your help
Francois
On Jan 19, 2:44 pm, Ali Afshar <aafs...@gmail.com> wrote:
> Francois wrote:
> > Tanks for your help Tobias !
> > I've just download poppler-python-0.6-experimental but after the ./
> > autogen.sh
> > I've got the following error:
> > checking for python extension module directory... ${exec_prefix}/lib/
> > python2.5/site-packages
> > checking for headers required to compile python extensions... not
> > found
> > configure: error: could not find Python headers
> > I'm sorry but I don't know what to do now, some python headers are
> > missing but which ones ?
> > Anyway if sombody can help me ...
> > Thanks
> > Francois
> Hi, you need python-dev package.
> > On Jan 19, 12:18 am, Tobias Eberle <tobias.ebe...@gmx.de> wrote:
> >> Hi,
> >>> oh, I forgot to mention it :)
> >> I also forgot to mention that the plugin uses "rubber" to compile the
> >> pdf. In Ubuntu you can install it as a package. Otherwise you can change
> >> the corresponding source line to use pdftex directly.
> Error: Couldn't open file '/home/tobias/studium/9.semester_ws_07_08/ > parallele_verteilte_Dateisysteme/Ceph/ceph.pdf'
please change the file name as I pointed out in my first mail. There are no checks at all that the file really exists and I guess that an exception is raised which is not handled. (this is the disadvantage of a proof of concept ;-) )
> > Error: Couldn't open file '/home/tobias/studium/9.semester_ws_07_08/
> > parallele_verteilte_Dateisysteme/Ceph/ceph.pdf'
> please change the file name as I pointed out in my first mail. There are
> no checks at all that the file really exists and I guess that an
> exception is raised which is not handled. (this is the disadvantage of a
> proof of concept ;-) )