DEV Community

Cong
Cong

Posted on

Quicker Qwiklabs for GCP

GCP Qwiklabs don't record user information between learning sessions, forcing the user to type the same Bash commands or the same Python code in Jupyter notebooks again and again.

For the Bash commands, you can save your typing by using a local GCloud SDK installation.

brew cask install google-cloud-sdk
gcloud components install datalab
gcloud init
gcloud auth login
export PATH=/usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/bin:$PATH

After starting a Qwiklabs session, on local you also login using the new GCP credential created for that session.

gcloud auth login

And then you can type the commands specified by the lab, and record the history, so that it will be much easier for you to use the same command later.

For the Jupyter notebooks, I hope that they will find a way to save my work between sessions, or alternatively initialize each learning session with more proper data.

Top comments (0)

AWS Q Developer image

Your AI Code Assistant

Generate and update README files, create data-flow diagrams, and keep your project fully documented. Built to handle large projects, Amazon Q Developer works alongside you from idea to production code.

Get started free in your IDE

👋 Kindness is contagious

Explore a trove of insights in this engaging article, celebrated within our welcoming DEV Community. Developers from every background are invited to join and enhance our shared wisdom.

A genuine "thank you" can truly uplift someone’s day. Feel free to express your gratitude in the comments below!

On DEV, our collective exchange of knowledge lightens the road ahead and strengthens our community bonds. Found something valuable here? A small thank you to the author can make a big difference.

Okay