Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • ParaView ParaView
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,842
    • Issues 1,842
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 89
    • Merge requests 89
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • ParaView
  • ParaViewParaView
  • Issues
  • #19970

Closed
Open
Created Jun 02, 2020 by Mark Zhukov@mrmzhuk

return vtkPythonView to Python Shell

Hi, I try work with python view using python shell, i have problem with dispaly figure.

image = figure_to_image(figure)
v = FindViewOrCreate('PythonView1', viewtype='PythonView') 
v.SetImageData(image)

I found that FindOrCreate() returns proxy object paraview.servermanager.PythonView

v.SMProxy.GetClientSideView()

reterns vtkPVView and paraview tells me

AttributeError
: 
'paraview.modules.vtkRemotingViews.vtkPVView' object has no attribute 'SetImageData'

How can I get vtkPythonView object?

Thank You!

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking