Skip to main content

The Mojo Dojo

1. Install LLVM

sudo apt install llvm
echo 'export LLVM_SYMBOLIZER_PATH=/usr/bin/llvm-symbolizer' >> ~/.bashrc

2. Find libpython path for your env

Assuming env located at ~/miniconda3

python3 -c 'import pathlib; sorted({print(x) for x in (pathlib.Path.home() / "miniconda3/envs").rglob("lib/*") if "libpython" in x.name})'

3. Export env

Replace <full_path_to_libpython.so> with your env's libpython path

echo 'export MOJO_PYTHON_LIBRARY="<full_path_to_libpython.so>"' >> ~/.bashrc
source ~/.bashrc

4. Install Modular CLI / Mojo

Replace <your key> with key provided at developer.modular.com/download

curl https://get.modular.com | MODULAR_AUTH=<your key> sh -
modular install mojo
echo 'export MODULAR_HOME="$HOME/.modular"' >> ~/.bashrc
echo 'export PATH="$MODULAR_HOME/pkg/packages.modular.com_mojo/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc

5. Activate env and run

from python import Python as py

fn main() raises:
    let np = py.import_module("numpy")
    print(np.random.randn(3,7))

Release files for mojodojo 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mojodojo 0.0.3
File Size Uploaded
mojodojo-0.0.3.tar.gz 7.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mojodojo 0.0.3
File Interpreter ABI Platform
mojodojo-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 15.1 kB

Release files / mojodojo-0.0.3.tar.gz

Download URL mojodojo-0.0.3.tar.gz
Size 7.4 kB
Tags Source
SHA-256 checksum
How to use checksums
95b0a0724f1d4e1652dffca2a5e93aeb07a4a59a7cd0ed7633bb0afe44c7befb
BLAKE2b-256 checksum
How to use checksums
df855fa1b94233f7b82781f95b5881b24eb87a176b6bcb9c16f332e15820644a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Release files / mojodojo-0.0.3-py3-none-any.whl

Download URL mojodojo-0.0.3-py3-none-any.whl
Size 7.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ea21049bd1a0060dbcb3562b8e45f002152e40ba6064ba332ee264e084d11f71
BLAKE2b-256 checksum
How to use checksums
6b1b04cb8a38b0a90c63f4d8960c6564bd024a601b888ab43abb53347d97b782
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files

0.0.2

2 release files

0.0.1

2 release files

0.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page