Jupyter Notebook with Panda3D

We have Jupyter Hub environment running on RHEL 7 and there is no X server. We created a conda environment and installed the panda3d using pip install. But when we try to run panda3d sample python code from jupyter notebook we are getting

raise Exception(‘Could not open window.’)

Has anyone run with panda3d samples inside jupyter notebook?