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 Data Science from Data School 📊

Join 25,000+ aspiring Data Scientists and receive Python & Data Science tips every Tuesday!

Read more from Learn Data Science from Data School 📊

Hi Reader, I'm really proud of this week's tip because it covers a topic (data leakage) that took me years to fully understand. 🧠 It's one of those times when I feel like I'm truly contributing to the collective wisdom by distilling complex ideas into an approachable format. 💡 You can read the tip below 👇 or on my blog. 🔗 Link of the week Building an AI Coach to Help Tame My Monkey Mind (Eugene Yan) In this short post, Eugene describes his experiences calling an LLM on the phone for coaching:...

Hi Reader, Last week, I recorded the FINAL 28 LESSONS 🎉 for my upcoming course, Master Machine Learning with scikit-learn. That's why you didn't hear from me last week! 😅 I edited one of those 28 videos and posted it on YouTube. That video is today's tip, which I'll tell you about below! 👉 Tip #45: How to read the scikit-learn documentation In order to become truly proficient with scikit-learn, you need to be able to read the documentation. In this video lesson, I’ll walk you through the five...

Hi Reader, happy Tuesday! My recent tips have been rather lengthy, so I'm going to mix it up with some shorter tips (like today's). Let me know what you think! 💬 🔗 Link of the week A stealth attack came close to compromising the world's computers (The Economist) If you haven't heard about the recent "xz Utils backdoor", it's an absolutely fascinating/terrifying story! In short, a hacker (or team of hackers) spent years gaining the trust of an open-source project by making helpful...