1. 09 Sep, 2019 4 commits
    • Ludovic Courtès's avatar
      kernels: Add 'kernel-sockets'. · 3b418494
      Ludovic Courtès authored
      * jupyter/kernels.scm (kernel-sockets): New procedure.
      (close-kernel): Use it.
    • Ludovic Courtès's avatar
      Move more kernel helpers to (guix kernels). · 16553955
      Ludovic Courtès authored
      * guix-kernel/jupyter-client.scm (read-message, send-message, pub)
      (pub-busy, pub-idle, reply-html): Move to...
      * jupyter/kernels.scm: ... here.
    • Ludovic Courtès's avatar
      Rename (guix-kernel jupyter-server) to (jupyter kernels). · 0556e9dd
      Ludovic Courtès authored
      * guix-kernel/jupyter-server.scm: Rename to...
      * jupyter/kernels.scm: ... this.
      * guix-jupyter-container.scm, guix-jupyter-kernel.scm,
      guix-kernel/jupyter-client.scm: Adjust accordingly.
      * Makefile.am (SOURCES): Likewise.
    • Ludovic Courtès's avatar
      Remove <notebook>, use <kernel> throughout. · 30004d60
      Ludovic Courtès authored
      * guix-kernel/jupyter-client.scm (<notebook>, notebook): Remove.
      (json->notebook): Rename to...
      (json->kernel): ... this, and adjust accordingly.
      (read-message, send-message, relay-message, pub, pub-busy)
      (pub-idle, reply-html): Adjust accordingly.
      * guix-kernel/jupyter-server.scm (<kernel>)[key]: New field.
      (kernel-iopub): New macro.
      (kernel): Add #:key.
      (close-kernel): New procedure.
      * guix-jupyter-kernel.scm: Adjust, replacing "notebook" with "kernel".
      * guix-jupyter-container.scm: Likewise.
  2. 11 Oct, 2018 1 commit
    • Ludovic Courtès's avatar
      jupyter-server: Define a <kernel> record type. · b59ff4a5
      Ludovic Courtès authored
      * guix-kernel/jupyter-server.scm (<kernel>): New record type.
      (kernel): New procedure.
      (run-kernel): Return a <kernel> instead of an alist.
      * guix-jupyter-container.scm (register-kernel): Replace 'name' and
      'values' parameters with 'kernel'.
      (kernel-by-name): Return the kernel itself, not the pair.
      (kernel-shell-by-name, kernel-iosub-by-name): Remove.
      (proxy-exec-kernel): Adjust accordingly.
  3. 24 Sep, 2018 2 commits
    • Ludovic Courtès's avatar
      jupyter-server: Use keyword arguments. · 40b45870
      Ludovic Courtès authored
      * guix-kernel/jupyter-server.scm (new-connection-file): Change to use
      keyword arguments.  Use 'call-with-output-file' instead of
      (run-kernel): Adjust accordingly.
    • Ludovic Courtès's avatar
      Send and receive bytevectors. · da295031
      Ludovic Courtès authored
      This avoids the occasional string decoding error for byte streams that
      were not actual UTF-8 strings.
      This is based on commit fbab29d738b46d8637579ccec93be49520a4606f ("Fixed
      a bug when the kernel could not send kernel_info (1 minute pause after
      notebook starts)") of <https://github.com/jerry40/guile-kernel
      * guix-jupyter-container.scm (reply-execute-request): Turn UUID into a
      * guix-jupyter-kernel.scm (send-to-container): Turn NAME into a
      bytevector and use 'zmq-send-msg-parts-bytevector'.
      (heartbeat-handler): Use '-bytevector' send and receive procedures.
      (general-handler): Likewise.  Add calls to 'utf8->string' as needed.
      * guix-kernel/jupyter-client.scm (send-to-jupyter)
      (pub): Likewise.
      * guix-kernel/jupyter-server.scm (run-kernel): Likewise.
      Co-authored-by: default avatarjerry40 <epanfilov@gmail.com>
  4. 21 Sep, 2018 3 commits
  5. 11 Sep, 2018 1 commit
    • Ludovic Courtès's avatar
      Really search for 'ipython' in $PATH. · 669abe5e
      Ludovic Courtès authored
      Previously we assumed $PATH contained a single entry.
      * guix-kernel/jupyter-server.scm (search-path->list): New procedure.
      (exec-kernel): Use it along with 'search-path' to determine the absolute
      file name of 'ipython'.
  6. 17 Jul, 2018 1 commit
    • ROUBY Pierre-Antoine's avatar
      guix-kernel: Add ipython. · 0c25abe7
      ROUBY Pierre-Antoine authored
      * guix-jupyter-container.scm (proxy-exec-kernel): Get streams message
        (local-eval): Send 'guix-end-of-eval' message.
      * guix-jupyter-kernel.scm (proxy-exec-container): Get streams message
      * guix-kernel/jupyter-client.scm (reply-html): Send 'guix-end-of-eval'
      * guix-kernel/jupyter-server.scm (exec-kernel): Add IPython.
  7. 05 Jul, 2018 1 commit
    • ROUBY Pierre-Antoine's avatar
      guix-kernel: Run Jupyter kernel over Guix kernel. · a76494a7
      ROUBY Pierre-Antoine authored
      * guix-jupyter-container.scm: Add magic kernel command.
      * guix-jupyter-kernel.scm: Add magic kernel command.
      * guix-kernel/jupyter-server.scm: New file.
      * Makefile.am: Add jupyter-server to SOURCE.
      * guix-kernel/magic.scm (magic-kernel?,
        magic-get-kernel-name): Add procedure.
        (magic?): Change '%%' by ';;'.
      * guix-kernel-demo.ipynb: Add new guix-kernel features.
      * logo.png: New file.