jupyter notebook running kernel in different env

This is a tricky part of ipython / Jupyter. The set of kernels available are independent of what your virtualenv is when you start jupyter Notebook. The trick is setting up the the ipykernel package in the environment you want to identify itself uniquely to jupyter. From docs on multiple ipykernels, source activate ENVNAME pip … Read more

Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory \\METADATA

TL;DR: Problem: Long install path Solution 1: Install the desired python package (in my case tensorflow) in the folder which has a shorter path (for example C:/my_py_packages/some_package) Solution 2: Set the registry value HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem@LongPathsEnabled to 1 as mentioned here. Original answer: I got here by having this kind of error when I tried installing tensorflow … Read more

conda update CondaHTTPError: HTTP None

My original answer got flagged as duplicate because I answered a similar question with the same answer, I wasn’t aware that this is not allowed. I have marked my other response as a duplicate. Hopefully, this stays up! I almost spent two days running in circles trying all the solutions I could find on the … Read more

Does it make sense to use Conda + Poetry?

I have experience with a Conda + Poetry setup, and it’s been working fine. The great majority of my dependencies are specified in pyproject.toml, but when there’s something that’s unavailable in PyPI, or installing it with Conda is easier, I add it to environment.yml. Moreover, Conda is used as a virtual environment manager, which works … Read more

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