Marimo: A Reactive, Reproducible Notebook

Marimo notebooks redefine the notebook experience by offering a reactive environment that addresses the limitations of traditional linear notebooks. With marimo, you can seamlessly reproduce and share content while benefiting from automatic cell updates and a correct execution order. Discover how marimo’s features make it an ideal tool for documenting research and learning activities. Before you can get started with marimo, you’ll need to install it. Fortunately, this is quick and easy to do: You use pip to install the […]

Read more

Loading Pydantic models from JSON without running out of memory

You have a large JSON file, and you want to load the data into Pydantic. Unfortunately, this uses a lot of memory, to the point where large JSON files are very difficult to read. What to do? Assuming you’re stuck with JSON, in this article we’ll cover: The high memory usage you get with Pydantic’s default JSON loading. How to reduce memory usage by switching to another JSON library. Going further by switching to dataclasses with slots. The problem: 20× […]

Read more

Abstracts: Zero-shot models in single-cell biology with Alex Lu

ALEX LU: Yeah, I’m really excited to be joining you today.  HUIZINGA: So let’s start with a little background of your work. In just a few sentences, tell us about your study and more importantly, why it matters.  LU: Absolutely. And before I dive in, I want to give a shout out to the MSR research intern who actually did this work. This was led by Kasia Kedzierska, who interned with us two summers ago in 2023, and she’s the […]

Read more

Quiz: Nested Loops in Python

Interactive Quiz ⋅ 5 QuestionsBy Philipp Acsany Share In this quiz, you’ll test your understanding of Nested Loops in Python. Nested loops in Python involve placing one loop inside another, enabling iteration over multiple sequences or repeated actions. They’re particularly useful for handling multidimensional data, generating patterns, and performing repetitive tasks with multiple layers of iteration. The quiz contains 5 questions and there is no time limit. You’ll get 1 point for each correct answer. At the end of the […]

Read more

Nested Loops in Python

Nested loops in Python allow you to place one loop inside another, enabling you to perform repeated actions over multiple sequences. Understanding nested loops helps you write more efficient code, manage complex data structures, and avoid common pitfalls such as poor readability and performance issues. By the end of this tutorial, you’ll understand that: Nested loops in Python involve placing one loop inside another, enabling iteration over multiple sequences or repeated actions. Situations where nested loops are a good idea […]

Read more

Abstracts: Aurora with Megan Stanley and Wessel Bruinsma

This is such exciting work about environmental forecasting, so we’re happy to have the two of you join us today.   Megan and Wessel, welcome.  MEGAN STANLEY: Thank you. Thanks. Great to be here.  WESSEL BRUINSMA: Thanks.  TINGLE: Let’s jump right in. Wessel, share a bit about the problem your research addresses and why this work is so important.  BRUINSMA: I think we’re all very much aware of the revolution that’s happening in the space of large language models, which have […]

Read more

Collaborators: Healthcare Innovation to Impact

JONATHAN CARLSON: From the beginning, healthcare stood out to us as an important opportunity for general reasoners to improve the lives and experiences of patients and providers. Indeed, in the past two years, there’s been an explosion of scientific papers looking at the application first of text reasoners and medicine, then multi-modal reasoners that can interpret medical images, and now, most recently, healthcare agents that can reason with each other. But even more impressive than the pace of research has […]

Read more

First Steps With LangChain

You’ve likely interacted with large language models (LLMs), like the ones behind OpenAI’s ChatGPT, and experienced their remarkable ability to answer questions, summarize documents, write code, and much more. While LLMs are remarkable by themselves, with a little programming knowledge, you can leverage libraries like LangChain to create your own LLM-powered applications that can do just about anything. In this video course, you’ll learn how to: Use LangChain to build LLM-powered applications Create reusable instructions with prompt templates Create and […]

Read more

Quiz: How to Group Data Using Polars .group_by()

Interactive Quiz ⋅ 10 QuestionsBy Ian Eyre Share In this quiz, you’ll test your understanding of the techniques covered in How to Group Data Using Polars .group_by(). By working through the questions, you’ll review your understanding of how to use the data aggregation and grouping techniques provided by Polars. You’ll need to do some research outside of the tutorial to answer all the questions, so let this challenge take you on a learning journey. The quiz contains 10 questions and […]

Read more

How to Group Data Using Polars .group_by()

One of the most common tasks you’ll encounter when analyzing Polars data is the need to summarize it. You can use the Polars .group_by() method to create groupings based on column values. A related summarization technique is aggregation, where you take a sequence of related values and condense them into a single value. By the end of this tutorial, you’ll understand that: You can summarize data using aggregation. You can use .filter() to view specific data. Using .group_by() allows you […]

Read more
1 2 3 4 5 6 972