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

Config option to save html somewhere other than /tmp #52

Closed
JudsenHembree opened this issue Jan 18, 2023 · 2 comments
Closed

Config option to save html somewhere other than /tmp #52

JudsenHembree opened this issue Jan 18, 2023 · 2 comments

Comments

@JudsenHembree
Copy link

snap bug

I'm running the latest ubuntu, and that ships with a snap version of firefox. When trying to launch notebook from a .py file. Everything works up until firefox tries to grab the html from /tmp. It can't see it. If you could add some option to save to a different dir than /tmp that would help. Also maybe describe this bug in the readme for other ubuntu users.

I did some digging

Looks like snap intentionally does not allow for it's packages to see the /tmp folder and thus it can't collect the html it needs.
Here is a link -> https://forum.snapcraft.io/t/accessing-tmp-from-snaps/22384 The link mentions how apparently firefox can't see /tmp but can see /Downloads.

Verification of problem

Sure enough if I copy over that html to downloads I can open it from terminal with firefox and it appears as expected.

@JudsenHembree
Copy link
Author

Problem goes away when using a non-snap version of Firefox

@luk400
Copy link
Owner

luk400 commented Mar 10, 2023

Hi, thanks for the information. I don't think there's anything I can do about this, since I'm not actively saving anything in /tmp, it seems the jupyter notebook command uses the /tmp directory and there doesn't seem to be an argument to change this behaviour.
I'll add this to the readme however, thanks for letting me know!

@luk400 luk400 closed this as completed Mar 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants