Skip to content
John Miller edited this page Apr 15, 2016 · 5 revisions

Tips/Troubleshooting

Controlling notebooklist buffer behavior

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.

Better background color in MuMaMo

(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)

MuMaMo is too noisy with python-mode.el

(setq python-saved-check-command nil)

See also: Issue #54: Problem with single quote in markdown cell · tkf/emacs-ipython-notebook (thanks to @rhstanton)

Flymake ("Invalid file-name" error)

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)

Clone this wiki locally