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

Changing directory in Google colab (breaking out of the python interpreter)

use %cd SwitchFrequencyAnalysis to change the current working directory for the notebook environment (and not just the subshell that runs your ! command). you can confirm it worked with the pwd command like this: !pwd further information about jupyter / ipython magics: http://ipython.readthedocs.io/en/stable/interactive/magics.html#magic-cd

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