Skip to content

sys.argv is empty #31

Description

@optozorax

I'm trying to run this code:

python! {
	import matplotlib.pyplot as plt

	x = [1, 2, 3]
	y = [2, 4, 1]

	plt.plot(x, y)

	plt.xlabel("x - axis")
	plt.ylabel("y - axis")

	plt.title("Line graph!")

	plt.savefig("foo.png")
}

But get only this error:

thread 'main' panicked at 'python!{...} failed to execute'

But this code works as single python file.

It will be fine to get errors from python interpreter why code is failed to execute.

Also, is import supported?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions