Skip to main content

bridgeit

An experimental hack to run other languages than python in solve.it.com.

Requirements

Installation

!pip install -U bridgeit

How it Works

BridgeIt enables running non-Python languages in SolveIt notebooks through a three-step process:

  1. Compiler Installation: Automatically installs language compilers and toolchains (e.g., evcxr for Rust, Mojo via pixi)

  2. Kernelspec Registration: Registers Jupyter kernelspecs that define how to execute each language

  3. Cell Magic Binding: Creates IPython cell magics (e.g., %%rust, %%mojo) that bridge notebook cells to the installed kernels

When you use %%rust or %%mojo, BridgeIt sends your code to the appropriate kernel for execution and displays the results inline.

Usage

Quick Start

import bridgeit

# Show available commands
bridgeit.help()

# List supported languages
bridgeit.langs()

Rust Example

# Install Rust kernel
bridgeit.install("rust")

# Activate Rust magic
bridgeit.use("rust")
%%rust
fn main() {
    println!("Hello from Rust 🦀");
}
main()
%%rust
let value = 21;
println!("{}", value * 2);

Mojo Example

# Install Mojo kernel
bridgeit.install("mojo")

# Activate Mojo magic
bridgeit.use("mojo")
%%mojo
fn main():
    print("Hello from Mojo 🔥")
main()
%%mojo
alias value = 10
print(value * 3)

License

Apache 2.0

Metadata

Release files for bridgeit 0.1.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 bridgeit 0.1.3
File Size Uploaded Provenance
bridgeit-0.1.3.tar.gz 95.4 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 111.4 kB

Release files / bridgeit-0.1.3.tar.gz

Download URL bridgeit-0.1.3.tar.gz
Size 95.4 kB
Tags Source
SHA-256 checksum
How to use checksums
1aba7c683da8ea49016a4c23b258b30bdb9fa5951d6cb06a75cb3d0fa298da63
BLAKE2b-256 checksum
How to use checksums
86e2111990651dfd74e894cd283c825714bfd28b6c6f06518fd74256d7440ab3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / bridgeit-0.1.3-py3-none-any.whl

Download URL bridgeit-0.1.3-py3-none-any.whl
Size 16.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7846122150394e098f4e25ff038fbce7e51b0739a0f14bfe3f9b5548a6f5b694
BLAKE2b-256 checksum
How to use checksums
71a78ff538f6ca2deb15d17034209c6911d7a4b1cd4077ce27df9770debdf5ef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Security for bridgeit 0.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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