|
Hello List,
I've got a question concerning the python integration. when I run spss from python I can tell python not to show the spss-output. That increases my calculating speed. when I run the same python programm from spss spss displays the complete output in the viewer. How can I tell spss via python to show just the output I want to see (for example a table which I created in python on my own)? ===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD |
|
You are right in observing that the api
spss.SetOutput has no effect when running Python within SPSS. You have two ways to control exactly what output appears in the Viewer. First, the Edit>Options>Viewer dialog allows you to specify what types of objects appear in the Viewer. This is generic, so you can, for example, suppress all logs or all Notes objects or all pivot tables but not individual types of tables. For detailed control of the Viewer contents (beyond what individual commands allow you to specify), use OMS. For example, OMS /SELECT TABLES /IF SUBTYPES=['coefficients'] /DESTINATION VIEWER=NO. would suppress all tables of type coefficients from the output. You can stack these commands to get as much specificity as you want, and, of course, these commands can be submitted in your Python program logic via the spss.Submit api. If you wanted, say, to suppress everything EXCEPT coefficient tables, you could issue two OMS commands. OMS /DESTINATION VIEWER=NO. OMS /IF SUBTYPES=['coefficients'] /DESTINATION VIEWER=YES. or you could use the somewhat trickier /EXCEPTIF OMS subcommand. Table subtypes can be found either by right clicking on a table entry in the Viewer outline panel or from the list on Utilities>OMS Identifiers. I won't promise that this will save much time, but it can certainly declutter the Viewer contents. HTH, Jon Peck -----Original Message----- From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of flo statistik Sent: Wednesday, November 28, 2007 5:23 AM To: [hidden email] Subject: [SPSSX-L] python/hide output in spss-viewer Hello List, I've got a question concerning the python integration. when I run spss from python I can tell python not to show the spss-output. That increases my calculating speed. when I run the same python programm from spss spss displays the complete output in the viewer. How can I tell spss via python to show just the output I want to see (for example a table which I created in python on my own)? ===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD ===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD |
| Free forum by Nabble | Edit this page |
