'Access local files in Python Jupyter Notebook while connected via SSH using VS Code

I use a Python Jupyter Notebook to access databases on a remote server, connected via SSH (Remote-SSH Extension).

When I try pandas.read_csv() I can only access files that are on the remote server, but I want to read local files.

How can I access my local files using the Python code?

What path must I use or what command is necessary?

os.getcwd() shows only remote path

Thanks for your help! This is my very first question here.



Solution 1:[1]

Seems that what I was trying to do is not possible, according to this: https://github.com/microsoft/vscode-remote-release/issues/706

Having a mixed workspace would require that a workspace extension can be active both locally and remotely. Currently an extension can only be active once, either locally or remotely. So this is currently not possible and we have no plans to support this. The recommendation is to have separate windows open for the local and remote workspace.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Smartt3