# Python shell in custom application

**URL:** https://discourse.paraview.org/t/python-shell-in-custom-application/9263
**Category:** Development
**Created:** [March 23, 2022, 1:16pm UTC](https://discourse.paraview.org/t/python-shell-in-custom-application/9263 "2022-03-23T13:16:06Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![fvitello](https://discourse.paraview.org/user_avatar/discourse.paraview.org/fvitello/32/8783_2.png) [@fvitello](https://discourse.paraview.org/u/fvitello)
#### Post date: [March 23, 2022, 1:16pm UTC](https://discourse.paraview.org/t/python-shell-in-custom-application/9263/1 "2022-03-23T13:16:06Z")

</div>

I am trying to add a python shell in my custom application like in the ParaView Client application.  
How can I configure my CMakeLists.txt? I have added the following

```auto
target_link_libraries(paraview_clone1
    PRIVATE
      ParaView::pvpythonmodules
      ParaView::pqPython
      ParaView::PythonInitializer)

```

but I get this error on build

```auto
ParaViewMainWindow.cxx:118:3: error: use of undeclared identifier 'pvpythonmodules_load'
  pvpythonmodules_load();
  ^
1 error generated.

```

Thanks

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.paraview.org/u/ben.boeckel)
#### Post date: [May 15, 2022, 8:22pm UTC](https://discourse.paraview.org/t/python-shell-in-custom-application/9263/2 "2022-05-15T20:22:32Z")

</div>

You should use `paraview_client_add` to make a client.

Is there a `pvpythonmodules.h` around? What are its contents?
