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)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay