Conda and Visual Studio Code debugging

I found a better solution, based on the previous ones: Go to Workplace Settings. Override the parameter python.venvPath with the Path to folder with a list of Virtual Environments. For the case of anaconda: This setting enables VS Code to recognize the available conda environments. Thus, we can click on the current python interpreter and … Read more

Conda list shows a package but cannot import it

A couple possibilities occur to me: 1. A Potential Path Problem Your python command might refer to a different python than the python which is in your active conda environment folder. Check this by running in terminal which conda and which python. If you get something like the below, you’re good here. /anaconda3/bin/conda /anaconda3/envs/<yourEnvName>/bin/python If … Read more

conda environment in google colab [google-colaboratory]

You can activate and run a new conda environment in Google Colab by using the magic %%bash command: %%bash source activate myenv python import sys # some simple python commands sys.path.append(‘/usr/local/lib/python3.6/site-packages’) print(sys.path) print(“Python version”) print(sys.version) Also including a few other commands I needed to run to get my environment setup completely: !conda update conda -y … Read more

How do I change the default browser used by Jupyter Notebook in Windows?

Thanks to @Darthbith and this post How to change the default browser used by the ipython/jupyter notebook in Linux? I was able to figure it out: Step 1: To open Anaconda Prompt from the Start Menu and type # for old notebook and JupyterLab < 3.0, or jupyter notebook –generate-config # for new nbclassic and … Read more

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