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, A reader asked me the following question: I am now looking towards a new career. Machine Learning is what I've always found very interesting and fascinating. However, I'd like to ask you: Is there really future for this stuff with all the buzz about LLMs becoming more and more capable all the time? Would time be spent well on learning all this stuff? Read this article online Excellent question! As someone who just published a book on Machine Learning, I clearly believe there is...
Hi Reader, the response to my new Machine Learning book has been outstanding! 🤩 My goal with this book is to reach as many people as possible, which is why I’ve made it free to read online as well as keeping the paperback and ebook prices as low as possible. I’m confident it would be an invaluable resource for any Machine Learning bootcamp or course, since it's a highly practical guide as opposed to focusing mostly on theory. Do you have a personal contact at any bootcamp or university where...
Hi Reader, I'm thrilled to announce that my new book, Master Machine Learning with scikit-learn, is now on sale! Buy from Amazon I poured my heart and soul into making this the highest quality and most practical Machine Learning book available. Publishing this book is a dream come true, and I'd be grateful if you'd consider picking up a copy! 🙏 Option 1: Get the paperback from Amazon ($19) Although most technical books of this size (300+ pages) tend to sell for at least $39, I've priced the...