8000 GitHub - tjosepo/deno_python at f057fc63e6edeac98e68f4a6895e66b173a73d37
[go: up one dir, main page]

Skip to content

tjosepo/deno_python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

deno_python

Python interpreter bindings for Deno.

import { python } from "https://deno.land/x/python@0.0.1/mod.ts";

const np = python.import("numpy");
const plt = python.import("matplotlib.pyplot");

const xpoints = np.array([1, 8]);
const ypoints = np.array([3, 10]);

plt.plot(xpoints, ypoints);
plt.show();

Documentation

Check out the docs here.

Python Installation

This module uses FFI to interface with the Python interpreter's C API. So you must have an existing Python installation (with the shared library), which is something like python39.dll, etc.

Python installed from Microsoft Store does not work.

If the module fails to find Python, you can add the path to the Python in the DENO_PYTHON_PATH environment variable.

License

Apache 2.0 license.

Copyright 2021 @ DjDeveloperr

About

🐍 Python interpreter bindings for Deno.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 100.0%
0