Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Saved Image not Displayed. #1970

Open
3 tasks done
nasrin1748 opened this issue Feb 5, 2024 · 4 comments
Open
3 tasks done

Saved Image not Displayed. #1970

nasrin1748 opened this issue Feb 5, 2024 · 4 comments
Labels
3rd party Errors coming from foreign projects we either enable or rely on help wanted Extra attention is needed needs-triage Issue needs triage

Comments

@nasrin1748
Copy link

Checklist

  • I added a descriptive title
  • I searched for other issues and couldn't find a solution or duplication
  • I already searched in Google and didn't find any good information or help

What happened?

I am trying to save an image.I think the image is saved and not showing up in my py-script project.
display(os.listdir(s)) shows that the image is present in the directory. heading.jpg is the image.
https://_12.pyscriptapps.com/empty-pine/latest/

What browsers are you seeing the problem on? (if applicable)

Microsoft Edge

Console info

No response

Additional Context

No response

@nasrin1748 nasrin1748 added needs-triage Issue needs triage type: bug Something isn't working labels Feb 5, 2024
@nasrin1748 nasrin1748 changed the title Saved File not Displayed. Saved Image not Displayed. Feb 5, 2024
@WebReflection
Copy link
Contributor

Please address @alex-martinez or @FabioRosado when you open website related issue as this repository is only for the PyScript runtime. I still think we should have a dedicated space for these issue but this time I'll ping them myself.

@FabioRosado
Copy link
Contributor

Hello @nasrin1748 thank you for opening this issue, just had a look at your code and it seems this issue is not specific to pyscript.com but how pyscript handles files in the browser. Basically, pyscript has a virtual filesystem that allows you to write files in, but these files won't be added to your computer's file system.

On the pyscript.com side, this issue gave me an idea for another thing to support on a package that we are currently working on - I'm thinking perhaps a simple save(file) that allows you to save a file from pyscript virtual system into your pyscript.com project.

I'll let you know once we have the package out for testing 😄

@nasrin1748
Copy link
Author

nasrin1748 commented Feb 5, 2024

Is save(file) available to use?

@WebReflection WebReflection added help wanted Extra attention is needed and removed type: bug Something isn't working labels Apr 10, 2024
@nasrin1748
Copy link
Author

I am able to save file using the following code in PyCharm but not in Py-script.
https://_12.pyscriptapps.com/delicate-pond/latest/

@WebReflection WebReflection added the 3rd party Errors coming from foreign projects we either enable or rely on label May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3rd party Errors coming from foreign projects we either enable or rely on help wanted Extra attention is needed needs-triage Issue needs triage
Projects
None yet
Development

No branches or pull requests

3 participants