Comments (8)
Hi @kuro7766 , @JapinderSandhu ,
I found a workaround for this, not the best but the closest I could get to vs code like env on google-Colab.
First mount the drive where your code is available and then run below code. [Make sure you disable the add blocker if you are using brave]
!pip install colab-xterm
%load_ext colabxterm
%xterm
It will open a terminal for you.
You can edit all your .py
files or any other file by just double clicking on it and a tab will open for it.
Another option is using GitHub Codespaces . GitHub provides with vs code env to write your code on fly.
To open a project in vs-code just open the project on GitHub and press .
key on your keyboard.
from colabcode.
The method shared in this article seems to work quite well for creating a publicly accessible FastAPI endpoint from Colab. I'm only doing it for very brief periods to test the endpoints, so don't anticipate any issues from Colab with it...
https://medium.datadriveninvestor.com/flask-on-colab-825d2099d9d8
Similar info here:
https://stackoverflow.com/questions/63833593/how-to-run-fastapi-uvicorn-in-google-colab
from colabcode.
This is really unfortunate. Why would they do this? I think the same thing is happening with Kaggle now. Very sad. Ive been using this for so long I actually don't know what to do now. I cant import my code into cells this is so terrible. Importing files into Kaggle is a nightmare.
from colabcode.
This is really unfortunate. Why would they do this? I think the same thing is happening with Kaggle now. Very sad. Ive been using this for so long I actually don't know what to do now. I cant import my code into cells this is so terrible. Importing files into Kaggle is a nightmare.
Yes , kaggle editor is terrible. Is there any other ways to connect to kaggle jupyter server remotely?
from colabcode.
I dont know, I tried looking into this method briefly.
https://towardsdatascience.com/how-to-kaggle-the-engineer-way-act-1-vs-code-containers-b3279970c029
https://code.visualstudio.com/docs/remote/containers
I dont know a lot about containers so im going to have to try and learn this method.
I definitely want to avoid using kaggle cells. Kaggle cells are an absurd way to code.
from colabcode.
@ar8372 thanks for the response. I see that colab-xterm however this does not work with Kaggle. I will have to swtich to google colab then which is still better than nothing.
Thank you so much for this help ! I had some issues installing anaconda on the google colab env but I figured it out. Hoping for smooth sailing from here.
I dont understand why Kaggle and Google Colab are doing this and banning ngrok tunnels. It is a way more effective method of programming with VS CODE and actual files, rather than coding in cells.
Dont know why they are making our lives harder.
from colabcode.
@ar8372 This is really terrible, the runtime on google colab disconnects randomly after 45 minutes. Google colab seems very unreliable compared to kaggle.
this is not good
from colabcode.
colabcode is really an awesome tool, especially for someone who has very low local compute. But recently after the policy update of Google Colab (https://research.google.com/colaboratory/faq.html) , it has started banning use of tunneling.
Now Google Colab gets timeout after 10-15 minutes. Is there any solution to this @abhishekkrthakur ? any other alternative library,
thanks.
UPDATE: S
After some digging and guidance this stackoverflow :
https://stackoverflow.com/questions/48350226/methods-for-using-git-with-google-colab
showed me a better method of using github and cloning my repository in the kaggle runtime using the !git clone command. I was unaware you could clone a github repository and run a python file in this method. I was even able to create an anaconda environment and run everything smoothly. So everything is running smoothly again :D <3 <3 :D
from colabcode.
Related Issues (20)
- ngrok.io cannot process this request at this time HOT 1
- ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. HOT 1
- Ngrok Tunneling site not working HOT 2
- How to get kaggle dataset when using Colabcode
- lab option gives blank screen HOT 1
- Debug Error :Configured debug type 'python' is not supported. HOT 5
- [BUG] PermissionError at Initialisation
- ColabCode on Google Colab doesn't open Jupiter lab HOT 2
- Kaggle has started banning colabcode juypterlab HOT 5
- Test
- linter install every time running
- Using colabcode on Colab is not safe now? HOT 4
- Getting Error after running colabcode HOT 1
- GPU Utilization
- Move from coder's code-server to gitpod's openvscode-server?
- How google views it? is it a tos violation for free user? HOT 1
- Security Alert when using on Google Colab HOT 2
- ngrok requires registration HOT 7
- Can't access VSCode Server via GoogleColab and Kaggle HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from colabcode.