<title> connecting Github with VSCode and Colab #38989
Replies: 2 comments
-
Hi @fsj-digital, Thanks for being a part of the GitHub Community! We're glad you're here. It's possible that GitHub Codespaces will be a good fit for what you're trying to do - https://github.com/codespaces offers a Jupyter Notebook quick start template, and if you have an existing repo, you can create a codespace for it and then go to https://github.com/codespaces where you can open the codespace in JupyterLab. I've attached a couple screenshots so you know what to look for if you'd like to try it out. Otherwise, you might want to try asking for help somewhere that focuses on using Google CoLab or similar options with VS Code, as this discussion community is focused on GitHub and Codespaces and may not be the best place for getting help with other topics. Best of luck! |
Beta Was this translation helpful? Give feedback.
-
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
-
Select Topic Area
Question
Body
Cloud instances like Google Colab, etc. offer free or very cheap options for storage, GPU computing, ready-to-use containers, and a Jupyter notebook/lab IDE for . Overall, there are many options here.
Nevertheless: I personally also like IDEs like VSCode to develop small projects myself. Given that VSCode provides ssh remote access to machines and (in addition to that) Docker containers, I'm wondering what are the best options here to make this happen?
Question: are there other options besides Colab-ssh - maybe better ones?
Background: want to set up a remote Google Colab computer using Vs Code. You work on the Jupyter notebook within Colab, which is hosted in the local computer's browser.
The connection of Colab & Vs Code and GitHub, it allows us to:
We have access to the Jupyter notebook hosted by Google Colab, its GPUs (the only condition here is internet speed) and the other resources. One can also access these resources with the local Vs Code editor (which has the advantage that we can navigate the repositories containing multiple folders and interdependent code files).
The [b]advantage[/b] - so it's like we're working on the local machine with Vs Code's navigation features, GUI, etc., while in reality we're accessing Colab's machines. I think this is very, very useful. There are more advantages - because beyond what has just been said, there is also the ability to upload the local files to GitHub - and clone them to the Colab machine. The advantage for working: The files can be developed or edited in Colab. The connection of Colab & Vs Code and GitHub, it enables us a lot - on the whole, then also that at the end of the day you can save all the work on GitHub by simply pushing the updated repository back on GitHub. It's all very convenient.
I am concerned here with the concrete implementation:
I found out about the solution with Colab-ssh: GitHub - WassimBenzarti/colab-ssh: Connect to Google Colab using SSH
GitHub - WassimBenzarti/colab-ssh: Connect to Google Colab using SSH
https://github.com/WassimBenzarti/colab-ssh
Colab-ssh is a light-weight library that allows you to connect to a remote Jupyter Notebook using an SSH Tunnel and optionally via VSCode. Open Google Colab and run this code in one of the code cells
and
Make sure you replace <PUT_YOUR_PASSWORD_HERE> with a password of your choice and <PUT_YOUR_REPOSITORY_URL_HERE> with the link to your Github/Gitlab
repository (if you use the git integration).
The output of this snippet will look similar to the following screenshot: launch_ssh_cloudflared output
warning If it's the first time you launch colab-ssh on your machine, it's important to follow the instructions in the "Client machine configuration" section. To show the steps that you need to do, just click "Client machine configuration". Don't worry, you don't have to repeat these steps again for each notebook.
grey_question Things doesn't work ? or looking for a way to connect using Ngrok ? Check the colab-ssh ngrok documentation[/quote]
GitHub - WassimBenzarti/colab-ssh: Connect to Google Colab using SSH
[url]https://github.com/WassimBenzarti/colab-ssh[/url]
a Methode without the usage of ssh
Is it possible to connect vscode (on a local machine) with Google Colab (the free service) runtime?
vgl. [url]https://stackoverflow.com/questions/59508225/is-it-possible-to-connect-vscode-on-a-local-machine-with-google-colab-the-fre[/url]
It will then show a JupyterLab URL
http://f1fe6fb39df6.ngrok.io # for example
You can click it to run JupyterLab now. Or use the URL with VSCode for remote Jupyter kernel.
You can also use my lib
rary to make it short.
!pip install kora -q
from kora import jupyter
jupyter.start(lab=True)
vgl. [url]https://stackoverflow.com/questions/59508225/is-it-possible-to-connect-vscode-on-a-local-machine-with-google-colab-the-fre[/url]
what do you think
Beta Was this translation helpful? Give feedback.
All reactions