Feel free to respond to the following with not just what you are
currently doing but what you would like to do, or what you tried to do
but didn't work:
1. What platform or platforms do you use Reinteract on? (Be specific:
'windows 7, 64-bit', 'Ubuntu 10.10', etc.)
2. What version of Python do you use? How did you install it?
3. What extension modules do you use with reinteract?
Please send responses to the list - I don't think there are enough
users at the moment to make that painful :-)
Thanks!
- Owen
On 09/11/2011 04:02 PM, Owen Taylor wrote:
> 1. What platform or platforms do you use Reinteract on? (Be specific:
> 'windows 7, 64-bit', 'Ubuntu 10.10', etc.)
Ubuntu 10.04
>
> 2. What version of Python do you use? How did you install it?
2.6, part of the standard install.
>
> 3. What extension modules do you use with reinteract?
Unsurprisingly, refigure2 and revis.
Robert
--
You received this message because you are subscribed to the Google Groups "Reinteract" group.
To post to this group, send email to reint...@googlegroups.com.
To unsubscribe from this group, send email to reinteract+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/reinteract?hl=en.
2. both Python 3.2.1 and Python 2.7.2 ,
installed via pacman
3. refigure2 ; retex seems to be installed, but never used
Thanks for asking and all! :)
-Paul
> 3. What extension modules do you use with reinteract?
To clarify, what I actually meant here was not "reinteract related
extension modules" but " 3rd party extension modules" - I was
wondering how much good packaging up numpy and matplotlib into the
binary distribution was doing. And also how much I have to worry on
the Mac about _which_ Python is being used by the binary Reinteract...
does that need to be made configurable in some fashion?
But thinking about it, it's sort of an open-ended question that would
give lots of irrelevant data, so I'm happy to get the answers about
what reinteract-related extension modules are in use.
- Owen
Fedora 14, 64-bit
OS X 10.6, forced 32-bit (64-bit machine)
> 2. What version of Python do you use? How did you install it?
2.7 and 2.6 respectively; system-provided python in both cases.
> 3. What extension modules do you use with reinteract?
replot, retex and regraph (hacky home-grown networkx integration; used
to have an igraph version of this too, but stopped using it)
And responding to the more general version of the question,
matplotlib, numpy, scipy, biopython, networkx.
cheers,
Kai
The old version of refigure does not have support for the new printing
mechanism. I'm guessing the default for objects without support is to
print their __repr__, which in the case of refigure was all of the
plotting commands that went into it. (This was more for diagnostics than
any real use, I think).
Recent versions of refigure2 support printing. If it's important, you
may be able to copy the printing support back to refigure. (Feel free
to ask me more about this.) But given the introduction of the build
keyword, I think it's safe to say refigure2 is the way forward, and I'd
recommend migrating to that.
>
> PDF Generation?
> ~~~~~~~~~~~~~~
> I seem to recall there being talk of the print-related features being
> able to generate PDF files (which is my prime motivator for pursuing
> newer versions of Reinteract). Could work out how this is done though.
I'm guessing most Linux and Mac people get PDF generation for free
through printing support. (I have a "printer" that spits out PDF files
instead of paper.) I gather that's not the case on Windows. Printing
is done through Cairo, which can output PDF files, so the base is there
for direct PDF output. I don't know how much work actually hooking it
up would be, though.
When I last used Windows, I had found a printer driver that produced
Postscript files. As a stop-gap measure, you could probably find
something like that. (A quick Google search reveals
http://sourceforge.net/projects/pdfcreator/, but I can't vouch one way
or the other on it.)
Robert
Phew - I was worried that I'd be debugging some sort of weird
matplotlib/cairo/windows-printing problem that was resulting in
garbage in the output...
[...]
>> PDF Generation?
>> ~~~~~~~~~~~~~~
>> I seem to recall there being talk of the print-related features being
>> able to generate PDF files (which is my prime motivator for pursuing
>> newer versions of Reinteract). Could work out how this is done though.
>
> I'm guessing most Linux and Mac people get PDF generation for free through
> printing support. (I have a "printer" that spits out PDF files instead of
> paper.) I gather that's not the case on Windows. Printing is done through
> Cairo, which can output PDF files, so the base is there for direct PDF
> output. I don't know how much work actually hooking it up would be, though.
We probably need to add a "Export to PDF" menu option for windows, and
to make it more discoverable/usable on other platforms.
looks promising, though I haven't tested this on windows. All the
machinery to print to PDF is there on windows - the PDF generation is
part of Cairo. So the only problem would be if something about the
Windows printing integration keeps it from working.
- Owen
> I seem to be one of the few Windows users. [...]
Don't think reinteract is overflowing with users on any platform at
the moment :-)
> Printing problems
> ~~~~~~~~~~~~~~
> If I use "Print", then select "Preferences" (and mark my preferences -
> specifically to include print preview), it just ignores them.
Hmm, will have to test this on Linux and see if it works there. If
it's windows specific, it's going to be a GTK+ bug :-(
> More importantly, the printout works fine for text, but just prints
> hundreds of numbers instead of the graphs. Perhaps this is to do with
> me using an old version of refigure(1)?
Seems like Robert has this one explained; testing with a simple plot
using replot would be useful if that explanation doesn't seem to be
the case. (Try printing the plot example from the Examples notebook.)
> "About" menu problem
> ~~~~~~~~~~~~~~~~~~
> Trying to run Menu->Help->about does nothing but produces console
> errors:
OK, will look at this when I get a chance - don't think it's anything
very hard, just some wrong paths to files.
Thanks a lot for doing this testing!
- Owen
Oh, this is the source of your about dialog problems ...
Reinteract.pyw is a wrapper script that works with the directory
layout the installer builds on windows. To run uninstalled, you can
use the uninst.py file in that same directory. (Gives a console window
because it's .py not .pyw. There was a bug on Windows that I just
pushed a fix for that was causing it to blow up.)
> Printing problems
> ~~~~~~~~~~~~~~
> If I use "Print", then select "Preferences" (and mark my preferences -
> specifically to include print preview), it just ignores them.
Hmm, testing on Windows 7 with the included "Microsoft XPS Document
Writer" it seems to work correctly for preference handling. Not sure
what is going on for you.
> More importantly, the printout works fine for text, but just prints
> hundreds of numbers instead of the graphs. Perhaps this is to do with
> me using an old version of refigure(1)?
replot plots do seem to plot as plots, but the scale was way off ...
they are vastly huge. Pushed a fix for that too.
>> I'm guessing most Linux and Mac people get PDF generation for free through
>> printing support. (I have a "printer" that spits out PDF files instead of
>> paper.) I gather that's not the case on Windows. Printing is done through
>> Cairo, which can output PDF files, so the base is there for direct PDF
>> output. I don't know how much work actually hooking it up would be, though.
>
> We probably need to add a "Export to PDF" menu option for windows, and
> to make it more discoverable/usable on other platforms.
>
> http://www.pygtk.org/docs/pygtk/class-gtkprintoperation.html#method-gtkprintoperation--set-export-filename
>
> looks promising, though I haven't tested this on windows. All the
> machinery to print to PDF is there on windows - the PDF generation is
> part of Cairo. So the only problem would be if something about the
> Windows printing integration keeps it from working.
Attached a first draft of this, seems to work. Some UI points need to
be figured out:
* Should it always prompt for options? What options? Paper size?
Orientation? What pages to print?
* Should it be possible to set defaults for options in Preferences,
or is it better to use a memory of what the user set last time? Is
that memory per-notebook or global?
* What folder should it default to saving the PDF in? The notebook
directory? "Documents"? "Desktop"? Does that depend on the platform?
* If we prompt for options, should they be embedded in the save file
dialog, or should it be a two-step thing? Or do we embed the save
location in an options dialog using GtkFileChooserEntry if we can
usually guess the right directory,
- Owen