HOSTING

Share a PyScript or Pyodide page as a link

PyScript and Pyodide run Python inside a web page, so a small Python tool can live in one HTML file. Upload that file and send a link, and anyone can run it in a browser without installing Python.

4 min read·

PyScript loads Pyodide, a build of Python that runs in the browser. A calculator, a data cleaner or a teaching example can be written in Python and handed to people who have never installed it.

There is no server involved: the page downloads the Python runtime and runs the code on the reader's machine. That means the HTML file only needs a host that serves it as a web page.

Put the page in one HTML file

A minimal page loads PyScript from its CDN and includes the Python inline:

  • ✓<link rel="stylesheet" href="https://pyscript.net/releases/2025.11.1/core.css">
  • ✓<script type="module" src="https://pyscript.net/releases/2025.11.1/core.js"></script>
  • ✓<script type="py">from pyscript import display; display("Hello from Python")</script>

Pin a release number in both URLs, as above, so an update to PyScript does not change the page after you share it.

Keep the Python inline in the HTML. A separate main.py or a config file that lists local files is a second file the host has to serve; making an HTML file self-contained covers folding references into one file, and a multi-page site without a build step covers uploading a folder instead.

Packages such as numpy and pandas load from the Pyodide CDN when the page asks for them, so they do not need to be in the file.

Upload it and send the link

Drag the .html file onto the FileShare Pro dashboard and copy the link. The page opens in any browser, and viewers need no account. The first open downloads the Python runtime, so expect a few seconds before the code runs; the browser caches it after that.

Shared pages are served without a Content Security Policy, so the CDN scripts and packages load. They are also served without cross-origin isolation headers. Code in a plain <script type="py"> runs on the main thread and works. PyScript features that need SharedArrayBuffer, such as a worker that reads the page synchronously, will not; keep that code on the main thread.

Collect feedback and update it

Turn on comments and testers can leave a note on the page after typing a name. The view count shows whether the people you sent it to have opened it.

To fix a bug, edit the file and upload it over the old one. The link stays the same: updating a shared link without changing it. Notebooks that only need to be read, not run, are covered in sharing a Jupyter notebook as a link.

Frequently asked

Can I share a Python program as a link without a server?

Yes, if it can run in the browser. Put the code in an HTML page with PyScript or Pyodide, upload the file to a host that serves it as a web page, and send the link.

Do viewers need Python installed?

No. The page downloads Pyodide, a build of Python for the browser, and runs the code there.

Why does my PyScript page show a SharedArrayBuffer error?

Some worker features need cross-origin isolation headers, which FileShare Pro does not send. Run the code in a plain <script type="py"> on the main thread instead.

Can the page use numpy or pandas?

Yes. Pyodide includes builds of common packages and fetches them from its CDN when the page imports them or lists them in the PyScript config.

Is it free?

Yes. The free plan hosts up to 50 files of up to 100 MB each, with view counts and comments included.

Got a page to share?

Drop the file, copy the link — live in seconds, free plan included.

Start sharing free