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

Save the token #5

Open
ei-grad opened this issue Dec 5, 2017 · 2 comments
Open

Save the token #5

ei-grad opened this issue Dec 5, 2017 · 2 comments

Comments

@ei-grad
Copy link
Contributor

ei-grad commented Dec 5, 2017

Why should someone enter the token again and again? Why not to save it in ~/.config/telepyth/token for example?

The appdirs package could be used to determine the platform's preferred config directory path.

@ei-grad
Copy link
Contributor Author

ei-grad commented Dec 5, 2017

Oh. Found that token location is already ~/.telepythrc, it is strange, but ok. So the issue is just about the %telepyth -t magic to save the specified token to this file.

@daskol
Copy link
Owner

daskol commented Dec 26, 2017

The reason why token is not saved during %telepyth -t call is that Jupyter environment is shared among users. Another reason is -t option encourages user to store token in a config since otherwise token might be under VCS in public access.

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