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

Use shebang when converting to python script? #690

Closed
robinrosenstock opened this issue Oct 14, 2017 · 3 comments · Fixed by #694
Closed

Use shebang when converting to python script? #690

robinrosenstock opened this issue Oct 14, 2017 · 3 comments · Fixed by #694

Comments

@robinrosenstock
Copy link
Contributor

robinrosenstock commented Oct 14, 2017

Using these commands:
jupyter nbconvert --to python [YOUR_NOTEBOOK].ipynb
or even
jupyter nbconvert --to script [YOUR_NOTEBOOK].ipynb,
I would propose, that every converted python scritpt from Ipython/Jupyter
should contain the python shebang #!/usr/bin/env python as their first line.

@robinrosenstock robinrosenstock changed the title Use Shebang when converting to python script? Use shebang when converting to python script? Oct 14, 2017
@takluyver
Copy link
Member

Seems like a reasonable idea. Here's the template, if you want to make a PR: https://github.com/jupyter/nbconvert/blob/master/nbconvert/templates/python.tpl

@robinrosenstock
Copy link
Contributor Author

Something went wrong, one moment..

@robinrosenstock
Copy link
Contributor Author

Ok, now this is correct

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

Successfully merging a pull request may close this issue.

2 participants