Hi all,
I'm testing out the excellent inline-python crate, with the following code:
use inline_python::python;
fn main() {
let x_max = 10;
python! {
import matplotlib.pyplot as plt
import numpy as np
x = np.linspace(0, 'x_max, 1000)
y = x**2
plt.plot(x, y)
plt.show()
}
}
This works as expected, and creates a plot just as native Python would. However I'm running into an issue where the rust-analyzer extension on VSCode will squiggle underneath the entire python command:
with an associated error:
I understand that the code I'm running is experimental—to run this code requires Rust +nightly. But, short of disabling the extension, is there a method to silence an error such as this for certain sections of code? Thanks!