Integrate JupyterHub with PySpark which is running on docker container

Hi,
I have configured Jupyterhub on localhost which is running good, Now we have PySpark which is running on docker container and I want to configure JupyterHub to use pyspark running in docker container.
I searched on google but I am not getting the satisfactory solutions

The key to your search may be removing “jupyter” from anything you are looking for. Figure out what you need to configure to talk to pyspark in the container for any python program, and then provide that information to your Jupyter sessions (e.g. via c.Spawner.environment if it’s environment variables that you need).