Not able to enable remote notebooks I have in my EC2 via Pycharm - Docker container
I used to use Jupyter Notebooks on browser. I technically turn my AWS EC2 on on the web, then SSH via Git CMD, and use the localhost:8888 and work everything on browser. I do not like Jupyter NB on browser, particularly autocomplete is slow and for some other reasons.
I recently had a knowledge that I was provided with docker image. What I did now to run pycharm on a remote docker interpreter is as follows:
- Install and run docker on Windows, set WSL2 backend accordingly
-Open Pycharm
- Create project on local machine (because it says pycharm does not allow creating project on remote)
- Go to project settings and configure docker interpreter.
Now when I do this, I see under services my docker connection. I have predefined images. I can create containers running on those images. I can also fetch my files I have on the browser/EC2 as scratch files.
Now here comes the problem. I can neither run those notebooks within pycharm nor can I create notebooks under project settings that runs on the remote configured docker python interpreter.
First option tells me that the file is not within the project (well yeah it is a scratch file from the remote) and the second says the file cannot be found.
I am very new to this so I don't find a way to fix it. Several answers similar to this recommends checking path mappings, attaching the code to the container/image, but none fix (I am not sure if I did correctly).
Can please someone give me step by step instruction or lead me to a guide where I can fix this issue? Thanks
Please sign in to leave a comment.
PyCharm can't run Managed Server when you use a remote interpreter. You should use Configured Server in Settings/Preferences | Build, Execution, Deployment | Jupyter | Jupyter Servers to provide the URL to the jupyter server.