Skip to main content

Experience better workflow with google colab, local jupyter notebooks and git

Project description

Welcome to colab-cli 👋

License: MIT Twitter: aks2899

Experience better workflow with google colab, local jupyter notebooks and git

Demo

Install

python -m pip install colab-cli or python3.7 -m pip install colab-cli

Set-up

STEP-1:

Get your client_secrets.json, instructions given here, only follow till the part where you have client_secrets.json in a local directory

STEP-2:

Go to the local directory with client_secrets.json

colab-cli set-config client_secrets.json

STEP-3:

Now we need to set the google account user id, goto your browser and see how many google logins you have, the count start from zero

for eg. I have 3 login and I use the second one for coding work, so my user id is 1

colab-cli set-auth-user 1

🙌 Now You're all set to go

Usage

colab-cli --help
  • List local ipynb
colab-cli list-nb
  • Open local ipynb file in google colab for first time and remote copy for subsequent time
colab-cli open-nb lesson1-pets.ipynb
  • Now you have made some changes to ipynb in colab, get the modified file locally by
colab-cli pull-nb lesson1-pets.ipynb
  • Made some changes to ipynb locally, push it to drive
colab-cli push-nb lesson1-pets.ipynb

Author

👤 Akshay Ashok

🤝 Contributing

Contributions, issues and feature requests are welcome!

Feel free to check issues page. You can also take a look at the contributing guide.

Show your support

Give a 🌟 if this project helped you!

📝 License

Copyright © 2020 Akshay Ashok.

This project is MIT licensed.


This README was generated with ❤ by readme-md-generator

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

colab-cli-2.2.0.tar.gz (6.9 kB view hashes)

Uploaded source

Built Distribution

colab_cli-2.2.0-py3-none-any.whl (10.0 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page