Skip to main content
Deno 2 is finally here ๐ŸŽ‰๏ธ
Learn more
Module

x/python/src/python.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.2/src/python.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