Comments (1)
PyScript has a virtual FileSystem, it cannot access your local or server files out of the box and it cannot automatically handle changes in it neither. To access those files you need a snapshot on bootstrap that fetches those files and copy their content into the VFS. From there you can read files.
See our documentation to better understand how to do that: https://pyscript.github.io/docs/2024.1.1/user-guide/configuration/#files
from pyscript.
Related Issues (20)
- cannot use cross origin HOT 17
- TypeError: Promise.withResolvers is not a function HOT 3
- Help with building a briefcase project for the web HOT 3
- Broken registration / login process on pyscript.com HOT 9
- Use of zipped/tgz assets not working in MicroPython HOT 6
- Ka
- ModuleNotFoundError when importing module from local file using [[fetch]] in pyscript_config.toml (in Next.js / React project) HOT 16
- Unable to connect to webpages with the requests library HOT 2
- Unable to use local piodide with worker HOT 3
- Getting RangeError: WebAssembly.Memory(): could not allocate memory HOT 1
- `py-editor` shows error in `2024.5.1` HOT 4
- Passing elements to pyscript.when causes ImportError in MicroPython
- Documentation: link to development environment setup guide 404s HOT 1
- Local Pyodide Packages Tutorial: Failed to load packaging, micropip HOT 2
- Adding Interactivity To the Py-Editor HOT 4
- Failed to set up Error occurred in M1 Mac : Following Developer Guideline
- Issue with printing class variables. HOT 6
- Error: TypeError: Can't create an SSLContext object without an ssl module HOT 4
- Deprecation Warnings
- PyEditor - setup node syntax error not propagated
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyscript.