TOPIC: COMPUTER CONFIGURATION
Getting Pylance to recognise locally installed packages in VSCode running on Linux Mint
17th December 2024When using VSCode on Linux Mint, I noticed that it was not finding any Python package installed into my user area, as is my usual way of working. Thus, it was being highlighted as being missing when it was already there.
The solution was to navigate to File > Preferences > Settings and click on the Open Settings (JSON) icon in the top right-hand corner of the app to add something like the following snippet in there.
"python.analysis.extraPaths": [
"/home/[user]/.local/bin"
]
Once you have added your user account to the above, saving the file is the next step. Then, VSCode needs a restart to pick up the new location. After that, the false positives get eliminated.
Getting rid of Windows 10 notifications about disabling start-up applications
20th May 2016On several Windows 10 machines, I have been seeing messages appearing in its Action Centre pane with the heading Disable apps to help improve performance. It appeared again recently, so I decided to look further into the matter.
What I found was that the solution first involves opening up the Control Panel, which takes a little finding in Windows 10. You could use Cortana to get to it or right-clicking on the Start Menu and left-clicking on the Control Panel menu. Using the Windows key + X will produce the same menu, and choosing the same entry will have the same effect.
Once the Control Panel is open, it makes life a little easier if you change to the Large icons view using the drop-down menu under the Search Control Panel box on the right-hand side. Then, what you need to do is click on the Security and Maintenance icon.
Once in that Security and Maintenance section, you are presented with two subheadings, one for Security and one for Maintenance. So long as you have not dismissed the message in the action centre, you will see a corresponding entry under the Maintenance section. At the bottom of that entry, there will be a link that turns off these messages permanently, and clicking on this will have the desired effect.