   (with-current-buffer live-py-output-buffer
     (toggle-truncate-lines 1)
     (setq-local show-trailing-whitespace nil))
-  (set (make-local-variable 'live-py-output-window)
-       (split-window-horizontally))
+  (setq live-py-output-window (split-window-horizontally))
   (set-window-buffer live-py-output-window live-py-output-buffer))
 
 (defun live-py-set-driver()

;; URL: http://donkirkby.github.io/live-py-plugin/
;; Version: 2015
;; X-Original-Version: 2.8.1
;; Package-Requires: ((emacs "24.1"))

;; This program is distributed under the Eclipse Public License - v 1.0
;; For more information see https://www.eclipse.org/legal/epl-v10.html

        (point-line-nr (line-number-at-pos)))
    (unless (and (= live-py-window-start-pos window-start-pos)
                 (= live-py-point-line-nr point-line-nr))
      (setq-local live-py-window-start-pos window-start-pos)
      (setq-local live-py-point-line-nr point-line-nr)
      (if (buffer-live-p (and live-py-output-buffer
                              (get-buffer live-py-output-buffer)))
          (progn
