Hi Reader,
Welcome to all of the new readers! 👋
My goal with this newsletter is to help you get better at Data Science every week. You can find past tips at tuesday.tips. (Yes, that’s a real URL!)
This is an excellent tool for discovering, comparing, or just learning about different Database Management Systems (951 and counting!)
If you’ve been following me for a while, you know that Jupyter is my preferred environment for writing Python code and working on Data Science projects.
For many people, especially those newer to Python and Data Science, the most convenient option for using Jupyter is to run it online. This avoids any hassles involved with installing Jupyter, Python, or Python libraries on your local machine.
A few years ago, I wrote a 6,000-word comparison of six popular services for running Jupyter in the cloud. Today, I’m going to focus on one of those services (Google Colab) and show you a few tips that can help you to make the most out of it!
Google Colaboratory, usually referred to as “Google Colab,” is available for free to anyone with a Google account. As long as you’re signed into Google, you can get started by creating a new notebook or uploading an existing Jupyter notebook. Your Colab notebooks are automatically saved in a special folder in your Google Drive, and you can even create new notebooks directly from Drive.
Colab’s biggest strength is that it’s easy to get started, since it’s built on top of familiar Google infrastructure: Google accounts, Google Drive, Google’s sharing functionality, and so on.
It’s certainly not the most full-featured hosted notebook, but keep in mind that more powerful alternatives (such as Deepnote) also add a lot more complexity. As such, Colab is a nice way to get started!
Open up any Colab notebook (such as this one) and follow along below!
1️⃣ Example notebooks: Click on File, then Open notebook, then Examples to help you get acquainted with some of Colab’s functionality.
2️⃣ Copy to Drive: If you’re viewing someone else’s notebook and you want to save it, click on File, then Save a copy in Drive, or just click the Copy to Drive button below the menu bar.
3️⃣ Locate in Drive: If you’re viewing your own notebook, click on File, then Locate in Drive to open up the (automatically created) folder of Colab notebooks.
4️⃣ Revision history: Click on File, then Revision history to see how your notebook has changed over time and optionally restore a previous version.
5️⃣ GPU: If you need GPU access for better performance, click on Edit, then Notebook settings, then select a GPU.
6️⃣ Command palette: Click on Tools, then Command palette (or Cmd/Ctrl + Shift + P) to bring up a searchable list of every available command.
7️⃣ Desktop notifications: Click on Tools, then Settings, then click the Show desktop notifications for completed executions box to get notified when a long-running task has been completed.
8️⃣ Sharing: Click the Share button in the upper right to share your notebook with others, including the ability for others to comment on or edit your notebook.
9️⃣ Variable inspector: Click the {x} button in the left sidebar to view a list of all defined variables in the current environment.
🔟 Data Table: Open the Data Table example notebook to see how to view a pandas DataFrame in a filterable, searchable, sortable interface.
🤪 And finally, if you want to see something truly ridiculous, click on Tools, then Settings, then Miscellaneous, then turn on all three of the “modes” 🐶🐱🦀
AI-powered features like “code completions, natural language to code generation and even a code-assisting chatbot” have already been integrated into Colab. ✨
As of now, these features are only available to users of a paid plan, though Google has promised to expand access to free users in the future!
If you enjoyed this week’s tip, please forward it to a friend! Takes only a few seconds, and it really helps me reach more people! 🙌
See you next Tuesday!
- Kevin
P.S. When you’re married to a Data Scientist
Did someone awesome forward you this email? Sign up here to receive Data Science tips every week!
Join 25,000+ intelligent readers and receive AI tips every Tuesday!
Hi Reader, This week, I've got a short tip about AI agents, followed by some Data School news... 👉 Tip #56: What are AI agents? Google is calling 2025 "the agentic era," DeepLearning.AI says "the agentic era is upon us," and NVIDIA's founder says "one of the most important things happening in the world of enterprise is agentic AI." Clearly AI agents are a big deal, but what exactly are they? Simply put, an AI agent is an application that uses a Large Language Model (LLM) to control its...
Hi Reader, Last week, I launched a brand new course: Build an AI chatbot with Python. 120+ people enrolled, and a few have already completed the course! 👏 Want to join us for $9? 👉 Tip #55: Should you still learn to code in 2025? You’ve probably heard that Large Language Models (LLMs) are excellent at writing code: They are competitive with the best human coders. They can create a full web application from a single prompt. LLM-powered tools like Cursor and Copilot can autocomplete or even...
Hi Reader, The Python 14-Day Challenge starts tomorrow! Hope to see you there 🤞 👉 Tuesday Tip: My top 5 sources for keeping up with AI I'll state the obvious: AI is moving incredibly FAST 💨 Here are the best sources I follow to keep up with the most important developments in Artificial Intelligence: The Neuron (daily newsletter) My top recommendation for a general audience. It’s fun, informative, and well-written. It includes links to the latest AI news and tools, but the real goldmine is...