TypeError: load() missing 1 required positional argument: ‘Loader’ in Google Colab

Now, the load() function requires parameter loader=Loader. If your YAML file contains just simple YAML (str, int, lists), try to use yaml.safe_load() instead of yaml.load(). And If you need FullLoader, you can use yaml.full_load(). Starting from pyyaml>=5.4, it doesn’t have any discovered critical vulnerabilities, pyyaml status. source: https://stackoverflow.com/a/1774043/13755823 yaml.safe_load() should always be preferred unless you … Read more

Code formatter like nb_black for google colab

I don’t think there’s an extension directly in Colab. What you could do, though, is to download your notebook, run pip install -U nbqa nbqa black notebook.ipynb and then reupload your (now formatted) notebook to Colab disclaimer: I’m the author of nbQA UPDATE: as of version 21.8b0, black runs directly on notebooks, no third-party tool … Read more

How can we use Selenium Webdriver in colab.research.google.com?

Recently Google collab was upgraded and since Ubuntu 20.04+ no longer distributes chromium-browser outside of a snap package, you can install a compatible version from the Debian buster repository: %%shell # Ubuntu no longer distributes chromium-browser outside of snap # # Proposed solution: https://askubuntu.com/questions/1204571/how-to-install-chromium-without-snap # Add debian buster cat > /etc/apt/sources.list.d/debian.list <<‘EOF’ deb [arch=amd64 signed-by=/usr/share/keyrings/debian-buster.gpg] … Read more

Colaboratory: Can I access to my Google drive folder and file?

Here’s an example of using a FUSE Drive interface to access your Drive files like local files: https://colab.research.google.com/notebook#fileId=1srw_HFWQ2SMgmWIawucXfusGzrj1_U0q In short: # Load the Drive helper and mount from google.colab import drive drive.mount(‘/content/drive’) After executing the code above, your Drive files will be present in /content/drive/My Drive. I’m guessing you also found the bundled example I/O … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)