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

make opening .ipynb files instaneous #873

Open
danielkrajnik opened this issue May 28, 2023 · 2 comments
Open

make opening .ipynb files instaneous #873

danielkrajnik opened this issue May 28, 2023 · 2 comments

Comments

@danielkrajnik
Copy link

Opening .ipynb files should get you straight away to the rendered notebook. No steps in-between. No manual server starting. No buffer switching. Just open file = open notebook.

There is no point for the user to start server and switch buffer - vscode jupyter extension gets you directly to the notebook... why would you make it so complicated to the users?

It's such a bad idea, please can we change it?

@dickmao
Copy link
Collaborator

dickmao commented May 28, 2023

It's such a bad idea, please can we change it?

tl;dr

(add-hook 'ein:ipynb-mode-hook
          (lambda ()
            (cl-letf (((symbol-function 'read-directory-name)
                       (lambda (_prompt dir &rest _args) dir)))
              (ein:process-find-file-callback))))

29 out of 30 people would agree with you, which is why roughly that ratio of the computing public uses vscode.

The exception is someone with a strong UNIX background who would find your presumption about skipping steps distasteful.

That person would also find distasteful the entire premise of a json format impervious to version control that also requires rendering by an additional moving part of a server or viewer.

This is not an endorsement of org-babel which I also find obtuse. For whatever reason, it's not cool anymore to just write a python script.

In my defence, I first encountered jupyter notebooks during graduate school before I knew what git was.

@danielkrajnik
Copy link
Author

Fuck it, I give up. ein is a mess

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