Tuesday Tip #4: Start coding anywhere in 10 seconds flat ⏱️


Hi Reader,

Last week, I shared my 25 most useful keyboard shortcuts for Jupyter Notebook. If you want to reference it later, here's the blog post:

🔗 Fly through Jupyter with keyboard shortcuts

Let’s move on to this week’s tip!


👉 Tip #4: How to start coding in under 10 seconds

Has this ever happened to you?

You get an idea for some code you want to try out, and you sit down at a computer, but it’s not your usual machine. You don’t want to set up your development environment right now, but you also don’t want to abandon your idea.

What do you do?

I’ve got two ideas for you, and both will get you coding in your web browser in under 10 seconds, including access to common data science libraries like scikit-learn and pandas! 🐼


Option 1: JupyterLite

Go to try.jupyter.org and click on JupyterLab or Jupyter Notebook. In just a few seconds, you’ll be ready to code!

This interface is powered by JupyterLite, which is a JupyterLab distribution that runs entirely in the browser. (Technically, the Notebook option is actually “RetroLab”, a project that duplicates the Notebook experience using JupyterLab components.)

Unfortunately, this service sometimes times out when there are lots of users. In that case, I recommend that you google for “jupyterlite”, click the first link (which is the JupyterLite documentation), and then click “Lab” or “Retro” at the top of the page.


Option 2: Colab Scratchpad

Go to https://colab.research.google.com/notebooks/empty.ipynb, or google for “colab scratchpad” and click the first link. You’ll be taken to a Colab Notebook, which is very similar to the Jupyter Notebook.

Scratchpad is better than the Colab start page because you’re taken directly to a notebook, plus it doesn't create an “Untitled” notebook in your Google Drive. (However, you still have to be logged into a Google account in order to use Scratchpad.)

Unlike JupyterLite, Colab rarely seems to time out since it’s run on Google's servers, and code consistently runs quickly!

How helpful was today’s tip?

🤩🙂😐


See you next Tuesday!

- Kevin

P.S. A tale of data science romance 😍

Did someone awesome forward you this email? Sign up here to receive data science tips every week!

Learn Artificial Intelligence from Data School 🤖

Join 25,000+ intelligent readers and receive AI tips every Tuesday!

Read more from Learn Artificial Intelligence from Data School 🤖

Hi Reader, Last week, I encouraged you to experiment with different LLMs, since there’s no one model that is superior across all use cases. Specifically, I suggested you try using Chatbot Arena, which allows you to chat with multiple models at once. It’s completely free, but has two significant disadvantages: Your chats are not private and may be used for research. It lacks the feature-rich interface provided by other LLMs. Today, I want to offer you a better method for experimenting with...

Hi Reader, Over the past 50 tips, I’ve touched on many different topics: Python, Jupyter, pandas, ML, data visualization, and so on. Going forward, I’m planning to focus mostly on Artificial Intelligence. I’m announcing this so you know what to expect, and I know what to deliver! 💌 I’ll also try to make the tips shorter, so that they're easier to digest on-the-go. Finally, I plan to include an “action item” each week, so that you can practice what you’re learning. I hope you like these...

Hi Reader, Next week, I’ll be offering a Black Friday sale on ALL of my courses. I’ll send you the details this Thursday! 🚨 👉 Tip #50: What is a "method" in Python? In Python, a method is a function that can be used on an object because of the object's type. For example, if you create a Python list, the "append" method can be used on that list. All lists have an "append" method simply because they are lists: If you create a Python string, the "upper" method can be used on that string simply...