Tips & Tricks

2024

Loading Data from the Web

1 minute read

Published:

Many of Pandas read functions have the ability to read files from the internet. This can be helpful you’re writing tutorials or examples and want them to work even if users don’t have the data. Or if you want to quickly look at data without downloading it.

2023

Anaconda and VS Code

less than 1 minute read

Published:

Having problems accessing Anaconda from VS Code (Python: Select Interpreter)?

Python Paths

1 minute read

Published:

Often when working in science/research we are rapidly developing and modifying code (and maybe not following the very best practices for coding). In these instances we may not be writing, developing, or installing Python modules which can be accessed by the Python interpreter. Rather we may have a directory with set of scripts, functions, or classes. In Python in order to access these without installing a module we need to add the file path of our directory to the Python path. This can be easily acomplished using the sys module.

Python Environments

3 minute read

Published:

Environments in Anaconda and Python allow you to create a named and isolated copy of Python. Within these environments you can work with specefic versions of Python and packages without affecting your base installation. These enviroments make it easy to:

Spyder GUI scaling

less than 1 minute read

Published:

Experiencing weird scaling issues with Spyder?

Reloading a module

less than 1 minute read

Published:

Ever been actively editing a module while also using it? IPython (and JUPYTER) have some automagic to help with this.

Faster conda solver

less than 1 minute read

Published:

Have you found your Anaconda enviroments stalling when trying to install new packages via conda?