Dependency Management

How to Open Python .py Files in IDLE with a Doubleclick?

I love tweaking my coding workflow. Small improvements accumulate over time and can lead to a massive productivity increase. Today, I caught myself being annoyed that I always needed to spend three clicks or so just to open a Python file in IDLE, the default Python editor on Windows. Time to change that! Do you …

How to Open Python .py Files in IDLE with a Doubleclick? Read More »

How to Find Path Where Python is Installed on Windows?

Windows normally installs Python on one of the two locations: C:\Python39 C:\Users\YourUser\AppData\Local\Programs\Python\Python39 For me, it’s the latter. For you, it may be different—this article shows you how to check for yourself! 🙂 For your convenience, I’ve made a short gif that shows how I rushed through the code on my Windows machine: Before you start, …

How to Find Path Where Python is Installed on Windows? Read More »

How to Check Your TensorFlow Version in Colab?

To check your TensorFlow version in your Jupyter Notebook such as Google’s Colab, use the following two commands: import tensorflow as tf This imports the TensorFlow library and stores it in the variable named tf. print(tf.__version__) This prints the installed TensorFlow version number in the format x.y.z. The following code example uses the dunder attribute …

How to Check Your TensorFlow Version in Colab? Read More »

How to Check the Pandas Version in Your Script?

What is the Pandas Library? The pandas library provides data structures and functionality to represent and manipulate labelled and tabular data. Think of it as like an advanced spreadsheet program in your code with functionality including—but not limited to—creating spreadsheets, accessing individual rows by name, calculating basic statistics over rows and columns, summing over cells …

How to Check the Pandas Version in Your Script? Read More »

How to Install Pandas on PyCharm?

Problem Formulation: Given a PyCharm project. How to install the pandas library in your project within a virtual environment or globally? Solution that always works: Open File > Settings > Project from the PyCharm menu. Select your current project. Click the Python Interpreter tab within your project tab. Click the small + symbol to add …

How to Install Pandas on PyCharm? Read More »

How to Import Libraries in Python’s exec() Function?

What is the exec() Function exec() is a built-in Python function that is most commonly used to dynamically execute code,  either as a string or object code. To properly understand how we can use exec() to import libraries and modules we need to familiarize ourselves with the syntax of the function itself, as it becomes relevant later: …

How to Import Libraries in Python’s exec() Function? Read More »

How to Get Started With Python Dash on PyCharm [Absolute Beginners]

This is a chapter draft for our upcoming book “Python Dash” with NoStarch—to appear in 2021. Stay tuned! Why an IDE Using an integrated development environment (IDE) has the potential to significantly accelerate your programming productivity. Many programmers do not unlock their full potential until they finally decide to switch from a simple code editor …

How to Get Started With Python Dash on PyCharm [Absolute Beginners] Read More »