inline-python 0.5.1

Inline Python code directly in your Rust code
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
#![feature(proc_macro_hygiene)]

use inline_python::python;

fn main() {
	let data = vec![(4, 3), (2, 8), (3, 1), (4, 0)];
	python! {
		import matplotlib.pyplot as plt
		plt.plot('data)
		plt.show()
	}
}