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

Very slow performance with polymode #795

Closed kantholtz closed 3 years ago

kantholtz commented 3 years ago

Hello - First of all: thanks for the great mode!

Problem description

After working on a notebook for some time it becomes unbearably slow, sluggish or laggy (i.e. waiting for 1-2 seconds after typing before the typed symbols appear in the input cell). I've run the profiler and it hints towards poly--ein. I'm happy to provide more information if needed!

- command-execute                                               36866  47%
 - call-interactively                                           36866  47%
  - funcall-interactively                                       36862  47%
   - self-insert-command                                        20477  26%
    - jit-lock-after-change                                     20461  26%
     - poly-ein--span-start-end                                 20445  26%
      - pm-innermost-range                                      20445  26%
       - pm-innermost-span                                      20445  26%
        - pm--innermost-span                                    20425  26%
         - pm--get-intersected-span                             20425  26%
          - pm-get-span                                         20405  26%
           - apply                                              20405  26%
            - #<compiled 0x188f7fd>                             20405  26%
             + #<compiled 0x1bc9e0d>                            11252  14%
             - poly-ein--set-buffer                              9153  11%
              - poly-ein-copy-state                              8484  10%
                 remove-overlays                                 6594   8%
               + mapc                                            1866   2%
              + pos-visible-in-window-p                            28   0%
          + pm-cache-span                                          16   0%
          #<compiled 0x1cbc13d>                                     8   0%
     + apply                                                       16   0%
    + blink-paren-post-self-insert-function                        12   0%
   + next-line                                                   4030   5%
   + previous-line                                               3356   4%
   + python-indent-dedent-line-backspace                         2281   2%
   + open-line                                                   1420   1%
   + ein:notebook-save-notebook-command-km                       1212   1%
   + ein:worksheet-execute-cell-km                               1012   1%
   + helm-M-x                                                     900   1%
   + yank                                                         641   0%
   + indent-for-tab-command                                       555   0%
   + delete-char                                                  421   0%
   + newline                                                      210   0%
   + undo                                                         164   0%
   + move-end-of-line                                              86   0%
     recenter-top-bottom                                           48   0%
     end-of-buffer                                                 34   0%
   + profiler-report-toggle-entry                                   4   0%
     move-beginning-of-line                                         3   0%
- redisplay_internal (C function)                               34829  44%
 - jit-lock-function                                            34578  44%
  - jit-lock-fontify-now                                        34574  44%
   - poly-ein--span-start-end                                   34396  43%
    - pm-innermost-range                                        34384  43%
     - pm-innermost-span                                        34350  43%
      + pm--innermost-span                                      34198  43%
        pm--cached-span                                            32   0%
        #<compiled 0x11e44a1>                                      12   0%
   + apply                                                        170   0%
 + eval                                                           108   0%
 + #<compiled 0x3d0069>                                            46   0%
   menu-bar-update-buffers                                         33   0%
 + keymap-canonicalize                                             10   0%
   file-remote-p                                                    8   0%
+ polymode-post-command-select-buffer                            3442   4%
+ ...                                                            2215   2%
+ timer-event-handler                                             619   0%
+ global-hl-line-highlight                                        157   0%
+ #<compiled 0x1850a21>                                            56   0%
+ global-hl-line-maybe-unhighlight                                 47   0%
+ linum-update-current                                             23   0%
+ undo-auto--add-boundary                                           8   0%
+ tooltip-show-help-non-mode                                        7   0%
  internal-echo-keystrokes-prefix                                   6   0%
+ gui-set-selection                                                 4   0%
  internal-timer-start-idle                                         4   0%
  polymode-pre-command-synchronize-state                            4   0%
+ yas-maybe-expand-abbrev-key-filter                                1   0%

Steps to reproduce the problem

Simply working on a notebook for some time

System info:

("EIN system info"
 :emacs-version
 "GNU Emacs 26.3 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.14)
 of 2020-03-26, modified by Debian"
 :window-system x
 :emacs-variant nil
 :build
 "--build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --enable-libsystemd --with-pop=yes --enable-locallisppath=/etc/emacs:/usr/local/share/emacs/26.3/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/26.3/site-lisp:/usr/share/emacs/site-lisp --with-sound=alsa --without-gconf --with-mailutils --build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --enable-libsystemd --with-pop=yes --enable-locallisppath=/etc/emacs:/usr/local/share/emacs/26.3/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/26.3/site-lisp:/usr/share/emacs/site-lisp --with-sound=alsa --without-gconf --with-mailutils --with-x=yes --with-x-toolkit=gtk3 --with-toolkit-scroll-bars 'CFLAGS=-g -O2 -fdebug-prefix-map=/build/emacs-mEZBk7/emacs-26.3+1=. -fstack-protector-strong -Wformat -Werror=format-security -Wall' 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2' 'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro'"
 :os
 (:uname
  "Linux anfauglith 5.8.0-48-generic #54-Ubuntu SMP Fri Mar 19 14:25:20 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
"
  :lsb-release
  "No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 20.10
Release:    20.10
Codename:   groovy
")
 :jupyter
 "jupyter core     : 4.7.1
jupyter-notebook : 6.3.0
qtconsole        : 5.0.3
ipython          : 7.22.0
ipykernel        : 5.5.3
jupyter client   : 6.1.12
jupyter lab      : not installed
nbconvert        : 6.0.7
ipywidgets       : 7.6.3
nbformat         : 5.1.3
traitlets        : 5.0.5
"
 :image-types
 (svg imagemagick png gif tiff jpeg xpm xbm pbm postscript)
 :image-types-available
 (svg imagemagick png gif tiff jpeg xpm xbm pbm postscript)
 :request-backend curl
 :ein
 (:version "20210330.1531"
           :source-dir "/home/felix/.emacs.d/elpa/ein-20210330.1531/")
 :lib
 ((:name "websocket"
         :path "~/.emacs.d/elpa/websocket-20210110.17/websocket.elc"
         :featurep t
         :version-var websocket-version
         :version "1.12")
  (:name "anaphora"
         :path "~/.emacs.d/elpa/anaphora-20180618.2200/anaphora.elc"
         :featurep t
         :version-var nil
         :version nil)
  (:name "request"
         :path "~/.emacs.d/elpa/request-20210214.37/request.elc"
         :featurep t
         :version-var request-version
         :version "0.3.3")
  (:name "deferred"
         :path "~/.emacs.d/elpa/deferred-20170901.1330/deferred.elc"
         :featurep t
         :version-var deferred:version
         :version "0.5.0")
  (:name "polymode"
         :path "~/.emacs.d/elpa/polymode-20200606.1106/polymode.elc"
         :featurep t
         :version-var nil
         :version nil)
  (:name "dash"
         :path "~/.emacs.d/elpa/dash-20210330.1544/dash.elc"
         :featurep t
         :version-var nil
         :version nil)
  (:name "with-editor"
         :path "~/.emacs.d/elpa/with-editor-20210319.1930/with-editor.elc"
         :featurep nil
         :version-var nil
         :version nil)))

Logs:

ein:log-all:

15:21:16:103: [warn] ein:jupyter-default-kernel: (json-unknown-keyword fish) @#<buffer graph.py>
15:21:17:909: [info] ein:jupyter-process-lines: jupyter exited with status 1 @#<buffer graph.py>
15:21:17:923: [info] Login to http://127.0.0.1:8888 complete. @#<buffer graph.py>
15:21:17:951: [verbose] Opening notebooklist at http://127.0.0.1:8888 @#<buffer graph.py>
15:21:20:138: [verbose] Opening notebooklist at http://127.0.0.1:8888/notes @#<buffer *ein:notebooklist http://127.0.0.1:8888*>
15:21:22:067: [verbose] Opened notebook notes/rdf2draug.ipynb @#<buffer *ein:notebooklist http://127.0.0.1:8888*>
15:21:22:081: [verbose] ein:kernel-retrieve-session--success: kernel-id=ee80bb33-f82b-45f0-9d30-c1bda353743f session-id=7b49241a-5011-431c-aa32-4005d4f95ecf @#<buffer *ein:notebooklist http://127.0.0.1:8888*>
15:21:22:081: [verbose] WS start: ws://127.0.0.1:8888/api/kernels/ee80bb33-f82b-45f0-9d30-c1bda353743f/channels?session_id=7b49241a-5011-431c-aa32-4005d4f95ecf @#<buffer *ein:notebooklist http://127.0.0.1:8888*>
15:21:22:089: [info] Notebook rdf2draug.ipynb is ready @#<buffer *ein:notebooklist http://127.0.0.1:8888*>
15:21:22:090: [verbose] WS opened: ws://127.0.0.1:8888/api/kernels/ee80bb33-f82b-45f0-9d30-c1bda353743f/channels?session_id=7b49241a-5011-431c-aa32-4005d4f95ecf @#<buffer *ein:notebooklist http://127.0.0.1:8888*>
15:21:22:108: [verbose] Opening notebooklist at http://127.0.0.1:8888/notes @#<buffer  *ein: http://127.0.0.1:8888/notes/rdf2draug.ipynb*[python]>
15:21:34:007: [verbose] Notebook is saved. @#<buffer  *ein: http://127.0.0.1:8888/notes/rdf2draug.ipynb*[python]>
15:21:36:028: [verbose] Opened notebook notes/rdf2draug.ipynb @#<buffer *ein:notebooklist http://127.0.0.1:8888*>
15:21:36:042: [verbose] ein:kernel-retrieve-session--success: kernel-id=ee80bb33-f82b-45f0-9d30-c1bda353743f session-id=7b49241a-5011-431c-aa32-4005d4f95ecf @#<buffer *ein:notebooklist http://127.0.0.1:8888*>
15:21:36:042: [verbose] WS start: ws://127.0.0.1:8888/api/kernels/ee80bb33-f82b-45f0-9d30-c1bda353743f/channels?session_id=7b49241a-5011-431c-aa32-4005d4f95ecf @#<buffer *ein:notebooklist http://127.0.0.1:8888*>
15:21:36:048: [verbose] WS closed unexpectedly: ws://127.0.0.1:8888/api/kernels/ee80bb33-f82b-45f0-9d30-c1bda353743f/channels?session_id=7b49241a-5011-431c-aa32-4005d4f95ecf @#<buffer *ein:notebooklist http://127.0.0.1:8888*>
15:21:36:055: [info] Notebook rdf2draug.ipynb is ready @#<buffer *ein:notebooklist http://127.0.0.1:8888*>
15:21:36:055: [verbose] WS opened: ws://127.0.0.1:8888/api/kernels/ee80bb33-f82b-45f0-9d30-c1bda353743f/channels?session_id=7b49241a-5011-431c-aa32-4005d4f95ecf @#<buffer *ein:notebooklist http://127.0.0.1:8888*>
15:21:36:062: [verbose] Opening notebooklist at http://127.0.0.1:8888/notes @#<buffer  *ein: http://127.0.0.1:8888/notes/rdf2draug.ipynb*[python]>
15:24:24:037: [verbose] Notebook is saved. @#<buffer *ein: http://127.0.0.1:8888/notes/rdf2draug.ipynb*>
15:25:26:891: [info] ein:jupyter-process-lines: jupyter exited with status 1 @#<buffer graph.py>
15:25:26:903: [info] Login to http://127.0.0.1:8888 complete. @#<buffer graph.py>
15:25:26:915: [verbose] Opening notebooklist at http://127.0.0.1:8888 @#<buffer graph.py>
15:25:29:309: [verbose] Opening notebooklist at http://127.0.0.1:8888/notes @#<buffer *ein:notebooklist http://127.0.0.1:8888*>
15:25:31:159: [verbose] Opened notebook notes/rdf2draug.ipynb @#<buffer *ein:notebooklist http://127.0.0.1:8888*>
15:25:31:172: [verbose] ein:kernel-retrieve-session--success: kernel-id=ee80bb33-f82b-45f0-9d30-c1bda353743f session-id=7b49241a-5011-431c-aa32-4005d4f95ecf @#<buffer *ein:notebooklist http://127.0.0.1:8888*>
15:25:31:172: [verbose] WS start: ws://127.0.0.1:8888/api/kernels/ee80bb33-f82b-45f0-9d30-c1bda353743f/channels?session_id=7b49241a-5011-431c-aa32-4005d4f95ecf @#<buffer *ein:notebooklist http://127.0.0.1:8888*>
15:25:31:178: [verbose] WS closed unexpectedly: ws://127.0.0.1:8888/api/kernels/ee80bb33-f82b-45f0-9d30-c1bda353743f/channels?session_id=7b49241a-5011-431c-aa32-4005d4f95ecf @#<buffer *ein:notebooklist http://127.0.0.1:8888*>
15:25:31:187: [info] Notebook rdf2draug.ipynb is ready @#<buffer *ein:notebooklist http://127.0.0.1:8888*>
15:25:31:187: [verbose] WS opened: ws://127.0.0.1:8888/api/kernels/ee80bb33-f82b-45f0-9d30-c1bda353743f/channels?session_id=7b49241a-5011-431c-aa32-4005d4f95ecf @#<buffer *ein:notebooklist http://127.0.0.1:8888*>
15:25:31:196: [verbose] Opening notebooklist at http://127.0.0.1:8888/notes @#<buffer  *ein: http://127.0.0.1:8888/notes/rdf2draug.ipynb*[python]>
15:30:54:533: [verbose] Notebook is saved. @#<buffer  *ein: http://127.0.0.1:8888/notes/rdf2draug.ipynb*[python]>
15:32:44:426: [verbose] Notebook is saved. @#<buffer  *ein: http://127.0.0.1:8888/notes/rdf2draug.ipynb*[python]>
15:33:22:453: [verbose] Notebook is saved. @#<buffer  *ein: http://127.0.0.1:8888/notes/rdf2draug.ipynb*[python]>
15:34:43:177: [error] ein:content-save-error: http://127.0.0.1:8888/api/contents/notes/rdf2draug.ipynb peculiar error. @#<buffer  *temp*>
15:34:43:177: [warn] Failed saving notebook! @#<buffer  *temp*>
15:37:30:946: [verbose] Notebook is saved. @#<buffer  *ein: http://127.0.0.1:8888/notes/rdf2draug.ipynb*[python]>
15:37:32:739: [verbose] Opened notebook notes/rdf2draug.ipynb @#<buffer *ein:notebooklist http://127.0.0.1:8888*>
15:37:32:794: [verbose] ein:kernel-retrieve-session--success: kernel-id=ee80bb33-f82b-45f0-9d30-c1bda353743f session-id=7b49241a-5011-431c-aa32-4005d4f95ecf @#<buffer *ein:notebooklist http://127.0.0.1:8888*>
15:37:32:794: [verbose] WS start: ws://127.0.0.1:8888/api/kernels/ee80bb33-f82b-45f0-9d30-c1bda353743f/channels?session_id=7b49241a-5011-431c-aa32-4005d4f95ecf @#<buffer *ein:notebooklist http://127.0.0.1:8888*>
15:37:32:800: [verbose] WS closed unexpectedly: ws://127.0.0.1:8888/api/kernels/ee80bb33-f82b-45f0-9d30-c1bda353743f/channels?session_id=7b49241a-5011-431c-aa32-4005d4f95ecf @#<buffer *ein:notebooklist http://127.0.0.1:8888*>
15:37:32:815: [info] Notebook rdf2draug.ipynb is ready @#<buffer *ein:notebooklist http://127.0.0.1:8888*>
15:37:32:815: [verbose] WS opened: ws://127.0.0.1:8888/api/kernels/ee80bb33-f82b-45f0-9d30-c1bda353743f/channels?session_id=7b49241a-5011-431c-aa32-4005d4f95ecf @#<buffer *ein:notebooklist http://127.0.0.1:8888*>
15:37:32:824: [verbose] Opening notebooklist at http://127.0.0.1:8888/notes @#<buffer  *ein: http://127.0.0.1:8888/notes/rdf2draug.ipynb*[python]>
15:39:12:512: [verbose] Notebook is saved. @#<buffer  *ein: http://127.0.0.1:8888/notes/rdf2draug.ipynb*[python]>
15:39:20:309: [verbose] Opened notebook notes/rdf2draug.ipynb @#<buffer *ein:notebooklist http://127.0.0.1:8888*>
15:39:20:326: [verbose] ein:kernel-retrieve-session--success: kernel-id=ee80bb33-f82b-45f0-9d30-c1bda353743f session-id=7b49241a-5011-431c-aa32-4005d4f95ecf @#<buffer *ein:notebooklist http://127.0.0.1:8888*>
15:39:20:326: [verbose] WS start: ws://127.0.0.1:8888/api/kernels/ee80bb33-f82b-45f0-9d30-c1bda353743f/channels?session_id=7b49241a-5011-431c-aa32-4005d4f95ecf @#<buffer *ein:notebooklist http://127.0.0.1:8888*>
15:39:20:330: [verbose] WS closed unexpectedly: ws://127.0.0.1:8888/api/kernels/ee80bb33-f82b-45f0-9d30-c1bda353743f/channels?session_id=7b49241a-5011-431c-aa32-4005d4f95ecf @#<buffer *ein:notebooklist http://127.0.0.1:8888*>
15:39:20:337: [info] Notebook rdf2draug.ipynb is ready @#<buffer *ein:notebooklist http://127.0.0.1:8888*>
15:39:20:337: [verbose] WS opened: ws://127.0.0.1:8888/api/kernels/ee80bb33-f82b-45f0-9d30-c1bda353743f/channels?session_id=7b49241a-5011-431c-aa32-4005d4f95ecf @#<buffer *ein:notebooklist http://127.0.0.1:8888*>
15:39:20:349: [verbose] Opening notebooklist at http://127.0.0.1:8888/notes @#<buffer  *ein: http://127.0.0.1:8888/notes/rdf2draug.ipynb*[python]>
15:41:58:980: [verbose] Notebook is saved. @#<buffer  *ein: http://127.0.0.1:8888/notes/rdf2draug.ipynb*[ein:markdown]>
15:42:00:000: [verbose] Opened notebook notes/rdf2draug.ipynb @#<buffer *ein:notebooklist http://127.0.0.1:8888*>
15:42:00:021: [verbose] ein:kernel-retrieve-session--success: kernel-id=ee80bb33-f82b-45f0-9d30-c1bda353743f session-id=7b49241a-5011-431c-aa32-4005d4f95ecf @#<buffer *ein:notebooklist http://127.0.0.1:8888*>
15:42:00:022: [verbose] WS start: ws://127.0.0.1:8888/api/kernels/ee80bb33-f82b-45f0-9d30-c1bda353743f/channels?session_id=7b49241a-5011-431c-aa32-4005d4f95ecf @#<buffer *ein:notebooklist http://127.0.0.1:8888*>
15:42:00:026: [verbose] WS closed unexpectedly: ws://127.0.0.1:8888/api/kernels/ee80bb33-f82b-45f0-9d30-c1bda353743f/channels?session_id=7b49241a-5011-431c-aa32-4005d4f95ecf @#<buffer *ein:notebooklist http://127.0.0.1:8888*>
15:42:00:033: [info] Notebook rdf2draug.ipynb is ready @#<buffer *ein:notebooklist http://127.0.0.1:8888*>
15:42:00:033: [verbose] WS opened: ws://127.0.0.1:8888/api/kernels/ee80bb33-f82b-45f0-9d30-c1bda353743f/channels?session_id=7b49241a-5011-431c-aa32-4005d4f95ecf @#<buffer *ein:notebooklist http://127.0.0.1:8888*>
15:42:00:041: [verbose] Opening notebooklist at http://127.0.0.1:8888/notes @#<buffer  *ein: http://127.0.0.1:8888/notes/rdf2draug.ipynb*[python]>
15:44:22:612: [verbose] Notebook is saved. @#<buffer  *ein: http://127.0.0.1:8888/notes/rdf2draug.ipynb*[python]>
15:46:59:545: [verbose] Notebook is saved. @#<buffer  *ein: http://127.0.0.1:8888/notes/rdf2draug.ipynb*[python]>
15:47:02:746: [verbose] Notebook is saved. @#<buffer  *ein: http://127.0.0.1:8888/notes/rdf2draug.ipynb*[python]>
15:49:18:156: [verbose] Notebook is saved. @#<buffer  *ein: http://127.0.0.1:8888/notes/rdf2draug.ipynb*[python]>
15:50:09:089: [verbose] Notebook is saved. @#<buffer  *ein: http://127.0.0.1:8888/notes/rdf2draug.ipynb*[python]>
15:51:45:573: [verbose] Notebook is saved. @#<buffer *ein: http://127.0.0.1:8888/notes/rdf2draug.ipynb*>
15:51:48:863: [verbose] Notebook is saved. @#<buffer  *ein: http://127.0.0.1:8888/notes/rdf2draug.ipynb*[python]>
15:52:11:667: [verbose] Notebook is saved. @#<buffer  *ein: http://127.0.0.1:8888/notes/rdf2draug.ipynb*[ein:markdown]>
15:53:50:014: [verbose] Notebook is saved. @#<buffer  *ein: http://127.0.0.1:8888/notes/rdf2draug.ipynb*[python]>
15:54:19:796: [verbose] Notebook is saved. @#<buffer  *ein: http://127.0.0.1:8888/notes/rdf2draug.ipynb*[python]>
15:56:52:525: [verbose] Notebook is saved. @#<buffer  *ein: http://127.0.0.1:8888/notes/rdf2draug.ipynb*[python]>
15:57:23:206: [verbose] Notebook is saved. @#<buffer  *ein: http://127.0.0.1:8888/notes/rdf2draug.ipynb*[python]>
15:57:27:144: [verbose] Notebook is saved. @#<buffer  *ein: http://127.0.0.1:8888/notes/rdf2draug.ipynb*[python]>
15:58:44:912: [verbose] Notebook is saved. @#<buffer  *ein: http://127.0.0.1:8888/notes/rdf2draug.ipynb*[python]>
15:58:46:345: [verbose] Opened notebook notes/rdf2draug.ipynb @#<buffer *ein:notebooklist http://127.0.0.1:8888*>
15:58:46:366: [verbose] ein:kernel-retrieve-session--success: kernel-id=ee80bb33-f82b-45f0-9d30-c1bda353743f session-id=7b49241a-5011-431c-aa32-4005d4f95ecf @#<buffer *ein:notebooklist http://127.0.0.1:8888*>
15:58:46:366: [verbose] WS start: ws://127.0.0.1:8888/api/kernels/ee80bb33-f82b-45f0-9d30-c1bda353743f/channels?session_id=7b49241a-5011-431c-aa32-4005d4f95ecf @#<buffer *ein:notebooklist http://127.0.0.1:8888*>
15:58:46:371: [verbose] WS closed unexpectedly: ws://127.0.0.1:8888/api/kernels/ee80bb33-f82b-45f0-9d30-c1bda353743f/channels?session_id=7b49241a-5011-431c-aa32-4005d4f95ecf @#<buffer *ein:notebooklist http://127.0.0.1:8888*>
15:58:46:378: [info] Notebook rdf2draug.ipynb is ready @#<buffer *ein:notebooklist http://127.0.0.1:8888*>
15:58:46:378: [verbose] WS opened: ws://127.0.0.1:8888/api/kernels/ee80bb33-f82b-45f0-9d30-c1bda353743f/channels?session_id=7b49241a-5011-431c-aa32-4005d4f95ecf @#<buffer *ein:notebooklist http://127.0.0.1:8888*>
15:58:46:387: [verbose] Opening notebooklist at http://127.0.0.1:8888/notes @#<buffer  *ein: http://127.0.0.1:8888/notes/rdf2draug.ipynb*[python]>
15:59:12:132: [verbose] Notebook is saved. @#<buffer  *ein: http://127.0.0.1:8888/notes/rdf2draug.ipynb*[python]>
16:00:09:812: [verbose] Notebook is saved. @#<buffer  *ein: http://127.0.0.1:8888/notes/rdf2draug.ipynb*[python]>
16:00:36:813: [verbose] Notebook is saved. @#<buffer  *ein: http://127.0.0.1:8888/notes/rdf2draug.ipynb*[python]>
16:02:03:538: [verbose] Notebook is saved. @#<buffer  *ein: http://127.0.0.1:8888/notes/rdf2draug.ipynb*[python]>
16:04:17:789: [verbose] Notebook is saved. @#<buffer  *ein: http://127.0.0.1:8888/notes/rdf2draug.ipynb*[python]>
16:11:28:496: [verbose] Notebook is saved. @#<buffer  *ein: http://127.0.0.1:8888/notes/rdf2draug.ipynb*[python]>
16:12:30:165: [verbose] Notebook is saved. @#<buffer  *ein: http://127.0.0.1:8888/notes/rdf2draug.ipynb*[python]>
16:12:45:719: [verbose] Notebook is saved. @#<buffer  *ein: http://127.0.0.1:8888/notes/rdf2draug.ipynb*[python]>
16:13:24:248: [verbose] Notebook is saved. @#<buffer  *ein: http://127.0.0.1:8888/notes/rdf2draug.ipynb*[python]>
16:13:50:129: [verbose] Notebook is saved. @#<buffer  *ein: http://127.0.0.1:8888/notes/rdf2draug.ipynb*[python]>
16:15:43:286: [verbose] Notebook is saved. @#<buffer  *ein: http://127.0.0.1:8888/notes/rdf2draug.ipynb*[python]>
16:15:54:352: [verbose] Notebook is saved. @#<buffer  *ein: http://127.0.0.1:8888/notes/rdf2draug.ipynb*[python]>
16:16:17:416: [verbose] Notebook is saved. @#<buffer  *ein: http://127.0.0.1:8888/notes/rdf2draug.ipynb*[python]>
16:16:49:102: [verbose] Notebook is saved. @#<buffer  *ein: http://127.0.0.1:8888/notes/rdf2draug.ipynb*[python]>
16:17:01:426: [verbose] Opened notebook notes/rdf2draug.ipynb @#<buffer *ein:notebooklist http://127.0.0.1:8888*>
16:17:01:442: [verbose] ein:kernel-retrieve-session--success: kernel-id=ee80bb33-f82b-45f0-9d30-c1bda353743f session-id=7b49241a-5011-431c-aa32-4005d4f95ecf @#<buffer *ein:notebooklist http://127.0.0.1:8888*>
16:17:01:442: [verbose] WS start: ws://127.0.0.1:8888/api/kernels/ee80bb33-f82b-45f0-9d30-c1bda353743f/channels?session_id=7b49241a-5011-431c-aa32-4005d4f95ecf @#<buffer *ein:notebooklist http://127.0.0.1:8888*>
16:17:01:447: [verbose] WS closed unexpectedly: ws://127.0.0.1:8888/api/kernels/ee80bb33-f82b-45f0-9d30-c1bda353743f/channels?session_id=7b49241a-5011-431c-aa32-4005d4f95ecf @#<buffer *ein:notebooklist http://127.0.0.1:8888*>
16:17:01:452: [info] Notebook rdf2draug.ipynb is ready @#<buffer *ein:notebooklist http://127.0.0.1:8888*>
16:17:01:452: [verbose] WS opened: ws://127.0.0.1:8888/api/kernels/ee80bb33-f82b-45f0-9d30-c1bda353743f/channels?session_id=7b49241a-5011-431c-aa32-4005d4f95ecf @#<buffer *ein:notebooklist http://127.0.0.1:8888*>
16:17:01:506: [verbose] Opening notebooklist at http://127.0.0.1:8888/notes @#<buffer  *ein: http://127.0.0.1:8888/notes/rdf2draug.ipynb*[python]>
16:20:28:117: [verbose] Notebook is saved. @#<buffer  *ein: http://127.0.0.1:8888/notes/rdf2draug.ipynb*[python]>
16:21:03:067: [verbose] Notebook is saved. @#<buffer  *ein: http://127.0.0.1:8888/notes/rdf2draug.ipynb*[python]>
16:21:53:777: [verbose] Notebook is saved. @#<buffer  *ein: http://127.0.0.1:8888/notes/rdf2draug.ipynb*[python]>
16:21:55:432: [verbose] Notebook is saved. @#<buffer  *ein: http://127.0.0.1:8888/notes/rdf2draug.ipynb*[python]>
16:21:57:155: [verbose] Notebook is saved. @#<buffer  *ein: http://127.0.0.1:8888/notes/rdf2draug.ipynb*[python]>
16:30:06:036: [verbose] Notebook is saved. @#<buffer  *ein: http://127.0.0.1:8888/notes/rdf2draug.ipynb*[python]>
16:37:47:674: [verbose] Notebook is saved. @#<buffer  *ein: http://127.0.0.1:8888/notes/rdf2draug.ipynb*[python]>
16:39:03:494: [verbose] Notebook is saved. @#<buffer  *ein: http://127.0.0.1:8888/notes/rdf2draug.ipynb*[python]>
16:39:59:680: [verbose] Notebook is saved. @#<buffer  *ein: http://127.0.0.1:8888/notes/rdf2draug.ipynb*[python]>
16:40:11:005: [verbose] Notebook is saved. @#<buffer  *ein: http://127.0.0.1:8888/notes/rdf2draug.ipynb*[python]>
16:43:52:485: [verbose] Notebook is saved. @#<buffer  *ein: http://127.0.0.1:8888/notes/rdf2draug.ipynb*[python]>
16:43:53:753: [verbose] Notebook is saved. @#<buffer  *ein: http://127.0.0.1:8888/notes/rdf2draug.ipynb*[python]>
16:44:49:563: [verbose] Notebook is saved. @#<buffer  *ein: http://127.0.0.1:8888/notes/rdf2draug.ipynb*[python]>
16:46:02:457: [verbose] Notebook is saved. @#<buffer  *ein: http://127.0.0.1:8888/notes/rdf2draug.ipynb*[python]>
16:46:04:153: [verbose] Notebook is saved. @#<buffer  *ein: http://127.0.0.1:8888/notes/rdf2draug.ipynb*[python]>
16:46:19:543: [verbose] Notebook is saved. @#<buffer  *ein: http://127.0.0.1:8888/notes/rdf2draug.ipynb*[python]>
16:46:21:473: [verbose] Notebook is saved. @#<buffer  *ein: http://127.0.0.1:8888/notes/rdf2draug.ipynb*[python]>
16:46:36:059: [verbose] Notebook is saved. @#<buffer  *ein: http://127.0.0.1:8888/notes/rdf2draug.ipynb*[python]>
16:46:38:949: [verbose] Notebook is saved. @#<buffer  *ein: http://127.0.0.1:8888/notes/rdf2draug.ipynb*[python]>
16:46:42:713: [verbose] Notebook is saved. @#<buffer  *ein: http://127.0.0.1:8888/notes/rdf2draug.ipynb*[python]>
16:47:59:870: [verbose] Notebook is saved. @#<buffer  *ein: http://127.0.0.1:8888/notes/rdf2draug.ipynb*[python]>
16:48:35:050: [verbose] Notebook is saved. @#<buffer  *ein: http://127.0.0.1:8888/notes/rdf2draug.ipynb*[python]>
16:48:49:558: [verbose] Notebook is saved. @#<buffer  *ein: http://127.0.0.1:8888/notes/rdf2draug.ipynb*[python]>
16:49:12:926: [verbose] Notebook is saved. @#<buffer  *ein: http://127.0.0.1:8888/notes/rdf2draug.ipynb*[python]>
16:49:24:910: [verbose] Notebook is saved. @#<buffer  *ein: http://127.0.0.1:8888/notes/rdf2draug.ipynb*[python]>
16:51:06:300: [verbose] Notebook is saved. @#<buffer  *ein: http://127.0.0.1:8888/notes/rdf2draug.ipynb*[python]>
16:52:13:627: [verbose] Notebook is saved. @#<buffer  *ein: http://127.0.0.1:8888/notes/rdf2draug.ipynb*[python]>
16:52:54:609: [verbose] Notebook is saved. @#<buffer  *ein: http://127.0.0.1:8888/notes/rdf2draug.ipynb*[python]>
16:53:15:336: [verbose] Notebook is saved. @#<buffer  *ein: http://127.0.0.1:8888/notes/rdf2draug.ipynb*[python]>
16:55:05:154: [verbose] Notebook is saved. @#<buffer  *ein: http://127.0.0.1:8888/notes/rdf2draug.ipynb*[python]>
16:55:26:971: [verbose] Notebook is saved. @#<buffer  *ein: http://127.0.0.1:8888/notes/rdf2draug.ipynb*[python]>
16:55:28:913: [verbose] Notebook is saved. @#<buffer  *ein: http://127.0.0.1:8888/notes/rdf2draug.ipynb*[python]>
16:57:23:009: [verbose] Notebook is saved. @#<buffer  *ein: http://127.0.0.1:8888/notes/rdf2draug.ipynb*[python]>
17:00:42:196: [verbose] Notebook is saved. @#<buffer  *ein: http://127.0.0.1:8888/notes/rdf2draug.ipynb*[python]>
17:02:53:390: [verbose] Notebook is saved. @#<buffer  *ein: http://127.0.0.1:8888/notes/rdf2draug.ipynb*[python]>
17:02:54:749: [verbose] Notebook is saved. @#<buffer  *ein: http://127.0.0.1:8888/notes/rdf2draug.ipynb*[python]>
17:04:18:869: [verbose] Notebook is saved. @#<buffer  *ein: http://127.0.0.1:8888/notes/rdf2draug.ipynb*[python]>
17:04:50:919: [verbose] Notebook is saved. @#<buffer  *ein: http://127.0.0.1:8888/notes/rdf2draug.ipynb*[python]>
17:05:08:905: [verbose] Notebook is saved. @#<buffer  *ein: http://127.0.0.1:8888/notes/rdf2draug.ipynb*[python]>
17:12:12:415: [warn] ein:dev-packages: Don’t call me! @#<buffer  *temp*>
jmcarcell commented 3 years ago

I've been having the same issue for a while. I tested ein opening emacs with -Q and then it's fine, so I guess it must be some conflict with other parts of my configuration or other packages. Hopefully I will have some time soonish to narrow it down

jmcarcell commented 3 years ago

@kantholtz are you using https://github.com/Fanael/rainbow-delimiters? When removing it from my config it stops being slow. I had noticed before it was getting slower as I added more parenthesis and I made a notebook for testing this with basically only pairs of parenthesis.

kantholtz commented 3 years ago

@jmcarcell thank you for the hint! I do not use rainbow delimiters, so that does not seem to be the problem. I understand, that this issue is not very concise and so I tried to reproduce it. However, it did not appear so far. The only difference is an update of ein to version 20210416.2315. So maybe that fixed it?

I'll be closing this issue and if the problem reoccurs, I'll try to use a vanilla emacs configuration to reproduce it.

digikar99 commented 2 years ago

I found the source of my lag in highlight-indentation-mode, disabling it (at least while typing) fixed it for me!