Skip to main content
Module

x/python/mod.ts>Python#runModule

🐍 Python interpreter bindings for Deno.
Go to Latest
method Python.prototype.runModule
import { Python } from "https://deno.land/x/python@0.2.1/mod.ts";

Runs Python script as a module and returns its module object, for using its attributes, functions, classes, etc. from JavaScript.

Parameters

code: string
optional
name: string