Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zrthxn/mojo-examples
Playground examples
https://github.com/zrthxn/mojo-examples
Last synced: 11 days ago
JSON representation
Playground examples
- Host: GitHub
- URL: https://github.com/zrthxn/mojo-examples
- Owner: zrthxn
- License: other
- Created: 2023-09-09T10:32:41.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-09T10:35:24.000Z (over 1 year ago)
- Last Synced: 2023-09-09T11:38:39.959Z (over 1 year ago)
- Language: Jupyter Notebook
- Size: 2.44 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Mojo code examples
A collection of sample programs and Mojo notebooks written in the
[Mojo](https://docs.modular.com/mojo/programming-manual.html) programming language.## Getting Started
Access a Mojo programming environment available from the
Mojo product [page](https://www.modular.com/mojo).Git clone the repository of Mojo samples using the command below:
```bash
git clone https://github.com/modularml/mojo.git
```## Running
Use the following sample command-line to run the programs:
```bash
mojo matmul.mojo
```You can run the Mojo notebooks using [JupyterLab or Visual Studio
Code](notebooks/README.md) with the Mojo extension available on the Marketplace.### Mojo SDK Container
The repo also contains a Dockerfile that can be used to create a
Mojo SDK container for developing and running Mojo programs. Use the
container in conjunction with the Visual Studio Code devcontainers
extension to develop directly inside the container.The Dockerfile also sets up a `conda` environment and by default,
starts a `jupyter` server (which you can access via the browser).## License
The Mojo examples and notebooks in this repository are licensed
under the Apache License v2.0 with LLVM Exceptions
(see the LLVM [License](https://llvm.org/LICENSE.txt)).## Contributing
Thanks for your interest in contributing to this repository!
We are not accepting pull requests at this time, but are actively
working on a process to accept contributions. Please stay tuned.