millejoh / emacs-ipython-notebook

Jupyter notebook client in Emacs
http://millejoh.github.io/emacs-ipython-notebook/
GNU General Public License v3.0
1.47k stars 122 forks source link

M-x customize-group ein error in Emacs 27.0.90 and 28.050 #697

Closed betaprior closed 4 years ago

betaprior commented 4 years ago

M-x customize-group ein throws an error and displays a corrupted buffer with half the options missing or displaying strings "UNITIALIZED, you should not see this".

The error is: (void-variable ein:jupyter-default-server-command)

dickmao commented 4 years ago

I have created a new label "emacs-27" for issues like yours. Please refer to the FAQ in the README about EIN's treatment of pre-release versions of emacs.

betaprior commented 4 years ago

Emacs 27 is in beta and the release is coming reasonably soon. Many people are switching to it due to much improved workflows with LSP thanks to native JSON parsing. So it would be reasonable to start testing against 27.090 sooner rather than later, particularly if there are known issues. If I can be of help testing/debugging let me know.

goktug97 commented 4 years ago

I've realized that some of the variables are set when the ein:markdown mode is initialized so I've set my config like this;

  (add-hook 'ein:markdown-mode-hook
            (lambda ()
              (progn 
                (setq ein:output-area-inlined-images t)
                (set-face-background 'ein:cell-input-area "black"))))

and it works. Maybe your issue is also releated to this.

EDIT: I've realized that this hook only works if your file has a markdown entry :D