1

Is there any way I can run python in github pages? Specifically through Pyodide because I am using pandas. I know github pages is only meant to serve static pages using HTML/CSS/JS but I was wondering if there is a workaround with pyodide given that it is compiled in Javascript.

I am trying to build a small web application which has a username entry box that once submitted, calls some data from an API, processes in pandas and displays some visualizations (either using a JS library like Chart.js or Zingcharts, or otherwise matplotlib / seaborn)

4

1 回答 1

2

WebAssembly 在客户端运行,因此您可以将 Pyodide 应用程序托管在 Github Pages(或任何其他静态资产托管)上。

要下载 Pyodide 包/依赖项,最简单的方法是使用 JsDelivr CDN(cf pyodide 文档),但如果您愿意,也可以将它们托管在 Github 页面上。相应的资产大小应在允许的使用限制内

于 2021-04-10T16:58:31.850 回答