Skip to content

[Bug]: Different PATH #120

@tgpsantos

Description

@tgpsantos

Jupyter notebook

Google Colab

What happened?

Hello guys,

I've started using Colab SSH and I've realized I couldn't run gcloud nor gsutil directly from the ipynb, I get an error saying the command was not found. This is the way it works in the Colab Notebook web.

After digging a bit it seemed like the cause is simply the path not being directing to the actual directory where the scripts are /tools/google-cloud-sdk/bin. In fact, when running !echo $PATH in the jupyter notebook from the web I can see this path included, but when running the same command in a jupyter notebook using the SSH connection it's not there.

I tried to update the path by doing !export PATH = (..) but no success so far (echo $PATH displays the same result).

Is there any way I can add /tools/google-cloud-sdk/bin to path, so I can run the aforementioned commands automatically?

What did you expect?

Run gcloud and gsutil without explicitly pointing to their path in the disk

Version

  • latest

Which version (if not the latest)?

No response

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions