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

Small fix to create an empty Jupyter Notebook when the file is empty, or it doesn't exist at all. #31

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

diegoortizmatajira
Copy link

  • Added a new key in settings, allowing the user to provide their own function to generate an empty notebook.
  • Added a default generator function that produces an empty notebook.
  • Added the logic that checks if the file exists or, if it is empty to call the generator.
  • Added a small description in the README file

@diegoortizmatajira
Copy link
Author

diegoortizmatajira commented Jan 20, 2025

Now it is possible to create a notebook by executing:

:e new_notebook.ipynb

or by creating an empty file with ipynb extension and then opening it.

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 this pull request may close these issues.

1 participant