Data protection when working with Jupyter Notebooks

When working with python code in jupyter notebooks, will both code cells and cell output be used in the context for the AI? If cell output is used by the AI, this causes some privacy concerns.

And does anyone know if it is possible to set up cursor to use an AI that is hosted in Europe (in the GDPR world so to speak)?