Problem with python library in headless mode

I am having a problem in using the depth camera intel real sense D435i with Nvidia GPU Jetson Nano.

Trying to use the Nano in the headless mode. In this case, I connect the Nano to my computer usb and go the chrome and type which opens me Jupyter notebook lab from the nano.

To use the camera, intel has a library called pyrealsense2 with all functions and interfaces for the camera. I installed it with problems.

The problem is: I can only access the functions using jupyter lab if I access jupyter lab using the terminal on the nano (using the nano as a separate computer). In this case jupyter is open in localhost:8888

If I try to type [] on the nano itself, I can see the library but not the functions inside, same problem happens if I use the headless mode.

All details about the steps that I followed, and the outputs are listed in this link:

By default display is enabled in HDMI port. Do you have modification to disable it?

And please check if you can launch the camera by following the steps:
Jetson Nano FAQ
Q: I have a USB camera. How can I launch it on Jetson Nano?