-
Notifications
You must be signed in to change notification settings - Fork 122
Tips
Thanks to @maxgerlach for this suggestion. After opening a notebook, ein calls
pop-to-buffer
to display the newly created buffer. This unfortunately may not
be the behavior people want. One good solution for controlling this is to
install the Shackle package and add the
following to your init file:
;;;; let's use package Shackle to prevent ein notebook buffers to pop
;;;; up in the "other window"
(require 'shackle)
(setq shackle-rules '(("\\`\\*ein: .+?\\.ipynb\\*\\'" :regexp t :same t)))
(shackle-mode)
For a bit more discussion see https://github.com/millejoh/emacs-ipython-notebook/issues/75.
(custom-set-faces
'(mumamo-background-chunk-major
((((class color) (min-colors 88) (background dark)) nil))))
See also: https://github.com/tkf/zeroein/blob/master/zeroein.el
Other way to do it:
(setq mumamo-background-colors nil)
See also: Issue #60: With mumamo, background color changes · tkf/emacs-ipython-notebook (thanks to @rhstanton)
(setq python-saved-check-command nil)
See also: Issue #54: Problem with single quote in markdown cell · tkf/emacs-ipython-notebook (thanks to @rhstanton)
You can get "Invalid file-name" error if you have something like the following in your Emacs setting.
(add-hook 'python-mode-hook 'flymake-find-file-hook) ; or
(add-hook 'python-mode-hook 'flymake-mode)
This may solves your problem:
(add-hook 'python-mode-hook (lambda () (if (buffer-file-name)
(flymake-mode))))
See also: Issue #12: mumamo compatibility problems with emacs-for-python · tkf/emacs-ipython-notebook (thanks to @gabrielelanaro)