That&#39;s true.  And I think it makes sense for ParaView to selectively import only the parts of VTK that it needs to implement paraview.simple and paraview.servermanager.<br><br>I find it annoying that paraview.vtk is not equivalent to the standard vtk python.  If you run a script with pvpython or pvbatch, what yo you get when you &quot;import paraview.vtk&quot; is not the same as if you ran the script with vtkpython and did &quot;import vtk&quot;.  I&#39;d like to see that changed, so that you can import the real vtk from pvbatch/pvpython.  Another issue is that if you access a vtk object without importing the python module where the object is defined, the object comes back as a &quot;vtkObject&quot;, there is no information about the derived class.  If you import the module afterward, the object is still stuck as a vtkObject, I&#39;m not sure if there is a remedy for that.<br>

<br>Pat<br><br><br><div class="gmail_quote">On Wed, Jan 30, 2013 at 3:57 AM, Sean Ziegeler <span dir="ltr">&lt;<a href="mailto:sean.ziegeler@nrlssc.navy.mil" target="_blank">sean.ziegeler@nrlssc.navy.mil</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">FWIW, I&#39;ve also found that only importing the VTK modules that one needs in a given script shaves off some time during the initialization of the script.<div>

<div class="h5"><br>
<br>
On 01/29/13 06:50, Pat Marion wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
There&#39;s a lot of VTK python modules, and unfortunately they are not all<br>
imported with you import paraview.vtk from ParaView&#39;s python console.<br>
  But, all the python modules are shipped with ParaView, as far as I<br>
know, they just aren&#39;t imported.  I wish there was an easy way to import<br>
the full set of vtk python modules in ParaView, maybe someone else knows<br>
a way?  The only way I know how to do it is to import the modules<br>
manually.  For example, to get the IOXML module:<br>
<br>
 &gt;&gt;&gt; from vtkIOXMLPython import *<br>
<br>
Or, you can create a new .py file (or edit the vtk/__init__.py file) to<br>
import all the modules.  To find the __init__.py file:<br>
<br>
 &gt;&gt;&gt; import paraview.vtk<br>
 &gt;&gt;&gt; print paraview.vtk.__file__ # this the path to a .pyc file, edit<br>
the .py file in the same directory<br>
<br>
<br>
Either edit the __init__.py file, or create a new file named like<br>
vtkFull.py and add import statements like:  from &lt;modulename&gt; import *.<br>
Here&#39;s a long list of all the modules I found, depending on which<br>
version you have, you might have a different list:<br>
<br>
<br>
from vtkCPTestDriverPython import *<br>
from vtkChartsCorePython import *<br>
from vtkCoProcessorPython import *<br>
from vtkCommonColorPython import *<br>
from vtkCommonComputationalGeometry<u></u>Python import *<br>
from vtkCommonCorePython import *<br>
from vtkCommonDataModelPython import *<br>
from vtkCommonExecutionModelPython import *<br>
from vtkCommonMathPython import *<br>
from vtkCommonMiscPython import *<br>
from vtkCommonSystemPython import *<br>
from vtkCommonTransformsPython import *<br>
from vtkDomainsChemistryPython import *<br>
from vtkFiltersAMRPython import *<br>
from vtkFiltersCorePython import *<br>
from vtkFiltersCosmoPython import *<br>
from vtkFiltersExtractionPython import *<br>
from vtkFiltersFlowPathsPython import *<br>
from vtkFiltersGeneralPython import *<br>
from vtkFiltersGenericPython import *<br>
from vtkFiltersGeometryPython import *<br>
from vtkFiltersHybridPython import *<br>
from vtkFiltersHyperTreePython import *<br>
from vtkFiltersImagingPython import *<br>
from vtkFiltersModelingPython import *<br>
from vtkFiltersParallelPython import *<br>
from vtkFiltersParallelStatisticsPy<u></u>thon import *<br>
from vtkFiltersProgrammablePython import *<br>
from vtkFiltersSourcesPython import *<br>
from vtkFiltersStatisticsPython import *<br>
from vtkFiltersTexturePython import *<br>
from vtkFiltersVerdictPython import *<br>
from vtkIOAMRPython import *<br>
from vtkIOCorePython import *<br>
from vtkIOEnSightPython import *<br>
from vtkIOExodusPython import *<br>
from vtkIOExportPython import *<br>
from vtkIOGeometryPython import *<br>
from vtkIOImagePython import *<br>
from vtkIOImportPython import *<br>
from vtkIOInfovisPython import *<br>
from vtkIOLSDynaPython import *<br>
from vtkIOLegacyPython import *<br>
from vtkIOMoviePython import *<br>
from vtkIONetCDFPython import *<br>
from vtkIOPLYPython import *<br>
from vtkIOParallelExodusPython import *<br>
from vtkIOParallelLSDynaPython import *<br>
from vtkIOParallelPython import *<br>
from vtkIOVPICPython import *<br>
from vtkIOXMLParserPython import *<br>
from vtkIOXMLPython import *<br>
from vtkIOXdmf2Python import *<br>
from vtkImagingColorPython import *<br>
from vtkImagingCorePython import *<br>
from vtkImagingFourierPython import *<br>
from vtkImagingGeneralPython import *<br>
from vtkImagingHybridPython import *<br>
from vtkImagingMorphologicalPython import *<br>
from vtkImagingSourcesPython import *<br>
from vtkInfovisCorePython import *<br>
from vtkInfovisLayoutPython import *<br>
from vtkInteractionImagePython import *<br>
from vtkInteractionStylePython import *<br>
from vtkInteractionWidgetsPython import *<br>
from vtkPVClientServerCoreCorePytho<u></u>n import *<br>
from vtkPVClientServerCoreDefaultPy<u></u>thon import *<br>
from vtkPVClientServerCoreRendering<u></u>Python import *<br>
from vtkPVCommonPython import *<br>
from vtkPVServerImplementationCoreP<u></u>ython import *<br>
from vtkPVServerImplementationDefau<u></u>ltPython import *<br>
from vtkPVServerImplementationRende<u></u>ringPython import *<br>
from vtkPVServerManagerApplicationP<u></u>ython import *<br>
from vtkPVServerManagerCorePython import *<br>
from vtkPVServerManagerDefaultPytho<u></u>n import *<br>
from vtkPVServerManagerRenderingPyt<u></u>hon import *<br>
from vtkPVVTKExtensionsCorePython import *<br>
from vtkPVVTKExtensionsDefaultPytho<u></u>n import *<br>
from vtkPVVTKExtensionsRenderingPyt<u></u>hon import *<br>
from vtkPVVTKExtensionsWebGLExporte<u></u>rPython import *<br>
from vtkParallelCorePython import *<br>
from vtkRenderingAnnotationPython import *<br>
from vtkRenderingContext2DPython import *<br>
from vtkRenderingCorePython import *<br>
from vtkRenderingFreeTypeOpenGLPyth<u></u>on import *<br>
from vtkRenderingFreeTypePython import *<br>
from vtkRenderingGL2PSPython import *<br>
from vtkRenderingHybridOpenGLPython import *<br>
from vtkRenderingLODPython import *<br>
from vtkRenderingLabelPython import *<br>
from vtkRenderingMatplotlibPython import *<br>
from vtkRenderingOpenGLPython import *<br>
from vtkRenderingParallelPython import *<br>
from vtkRenderingVolumeAMRPython import *<br>
from vtkRenderingVolumeOpenGLPython import *<br>
from vtkRenderingVolumePython import *<br>
from vtkTestingRenderingPython import *<br>
from vtkViewsContext2DPython import *<br>
from vtkViewsCorePython import *<br>
from vtkViewsInfovisPython import *<br>
<br>
<br>
Pat<br>
<br>
On Sun, Jan 27, 2013 at 4:02 AM, Demian Wassermann<br></div></div><div class="im">
&lt;<a href="mailto:demian@bwh.harvard.edu" target="_blank">demian@bwh.harvard.edu</a> &lt;mailto:<a href="mailto:demian@bwh.harvard.edu" target="_blank">demian@bwh.harvard.edu</a><u></u>&gt;&gt; wrote:<br>
<br>
    Dear Paraview Users / Developers,<br>
<br>
    I have just started using version 3.98 and I must say I like it a lot.<br>
<br>
    However, on the binary distribution the number of vtk classes<br>
    accessible through python scripting was greatly reduced with respect<br>
    to the previous version.<br>
<br>
    I suspect that because it is now using the modularized VTK<br>
    architecture as it says in the release notes:<br>
<br>
    “VTK was restructured to use a modularized approach for building<br>
    various components, and ParaView&#39;s build infrastructure was revamped<br>
    to make use of this. Users may now build variants of the ParaView<br>
    library while choosing only modules of interest from VTK. This<br>
    enables developers to build small, lightweight VTK and ParaView<br>
    packages ideal for co-processing.”<br>
<br>
    Is there a way to re-eanable the full python library?<br>
<br>
<br>
    Thanks in advance!<br>
    --<br>
    Demian Wassermann, PhD<br></div>
    <a href="mailto:demian@bwh.harvard.edu" target="_blank">demian@bwh.harvard.edu</a> &lt;mailto:<a href="mailto:demian@bwh.harvard.edu" target="_blank">demian@bwh.harvard.edu</a><u></u>&gt;<div class="im"><br>
    LMI / PNL / SPL Labs<br>
    Harvard Medical School<br>
    Brigham and Women&#39;s Hospital<br>
    1249 Boylston, Boston, MA, USA<br>
    <a href="http://lmi.bwh.harvard.edu/~wassermann/" target="_blank">http://lmi.bwh.harvard.edu/~<u></u>wassermann/</a><br>
<br>
    ______________________________<u></u>_________________<br></div>
    Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a> &lt;<a href="http://www.kitware.com" target="_blank">http://www.kitware.com</a>&gt;<div class="im"><br>
<br>
    Visit other Kitware open-source projects at<br>
    <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/<u></u>opensource/opensource.html</a><br>
<br>
    Please keep messages on-topic and check the ParaView Wiki at:<br>
    <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/<u></u>ParaView</a><br>
<br>
    Follow this link to subscribe/unsubscribe:<br>
    <a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/<u></u>mailman/listinfo/paraview</a><br>
<br>
<br>
<br>
<br>
______________________________<u></u>_________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/<u></u>opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/<u></u>ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/<u></u>mailman/listinfo/paraview</a><br>
<br>
</div></blockquote>
</blockquote></div><br>