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, 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...

Hi Reader, I appreciate everyone who has emailed to check on me and my family post-Helene! It has been more than 6 weeks since the hurricane, and most homes in Asheville (mine included) still don't have clean, running water. We're hopeful that water service will return within the next month. In the meantime, we're grateful for all of the aid agencies providing free bottled water, free meals, places to shower, and so much more. ❤️ Thanks for allowing me to share a bit of my personal life with...

Hi Reader, Regardless of whether you enrolled, thanks for sticking with me through the launch of my new course! 🚀 I've already started exploring topics for the next course... 😄 🔗 Link of the week git cheat sheet (PDF) A well-organized and highly readable cheat sheet from Julia Evans, the brilliant mind behind Wizard Zines! 👉 Tip #48: Three ways to set your environment variables in Python I was playing around with Mistral LLM this weekend (via LangChain in Python), and I needed to set an...