# MAX can now be used in Google Colab

**URL:** <https://forum.modular.com/t/max-can-now-be-used-in-google-colab/1383>\
**Category:** MAX\
**Created:** [May 6, 2025, 5:56pm UTC](https://forum.modular.com/t/max-can-now-be-used-in-google-colab/1383 "2025-05-06T17:56:03Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![BradLarson](https://sea1.discourse-cdn.com/flex001/user_avatar/forum.modular.com/bradlarson/32/62_2.png) [@BradLarson](https://forum.modular.com/u/BradLarson)\
**Post date:** [May 14, 2025, 7:03pm UTC](https://forum.modular.com/t/max-can-now-be-used-in-google-colab/1383/3 "2025-05-14T19:03:20Z")

</div>

This support for building and running Mojo code in a Jupyter notebook cell has been added into the `mojo` package, so in Colab you can now

```python
import mojo.notebook

```

and compile and run Mojo code in a cell using

```python
%%mojo

# Mojo code here

```

This even extends to building Mojo packages from a notebook cell, using the syntax

```python
%%mojo package -o custom_ops.mojopkg

# Mojo code here

```

The [newly simplified Mojo notebook example](https://colab.research.google.com/github/BradLarson/mojo-operation-template/blob/colab-notebook/Modular_Mojo_Colab_Example.ipynb) now uses this import.

 ![SimplerMojoColab](https://us1.discourse-cdn.com/flex001/uploads/modular/original/1X/27d5c9c1a5800ebb71a529c27a8aa057295745da.png)

---

_[View the full topic](https://forum.modular.com/t/max-can-now-be-used-in-google-colab/1383)._
