Attention une mise à jour du service Gitlab va être effectuée le mardi 30 novembre entre 17h30 et 18h00. Cette mise à jour va générer une interruption du service dont nous ne maîtrisons pas complètement la durée mais qui ne devrait pas excéder quelques minutes. Cette mise à jour intermédiaire en version 14.0.12 nous permettra de rapidement pouvoir mettre à votre disposition une version plus récente.

  1. 01 Oct, 2019 1 commit
  2. 30 Sep, 2019 4 commits
  3. 27 Sep, 2019 3 commits
  4. 26 Sep, 2019 3 commits
    • Ludovic Courtès's avatar
      messages: Add <execute-input>. · a038906c
      Ludovic Courtès authored
      * jupyter/messages.scm (<execute-input>): New record type.
    • Ludovic Courtès's avatar
      messages: Add <execute-request>. · 591d5814
      Ludovic Courtès authored
      * jupyter/messages.scm (<execute-request>): New record type.
      * guix-jupyter-kernel.scm (reply-execute-request): Use it.
      * tests/kernels.scm ("execute_request"): Likewise.
    • Ludovic Courtès's avatar
      messages: Add <kernel-status>. · b23ee453
      Ludovic Courtès authored
      * jupyter/messages.scm (<kernel-status>): New record type.
      * jupyter/kernels.scm (pub): Expect a <kernel-status> record and use
      (pub-busy, pub-idle): Pass a <kernel-status> record.
      * tests/kernels.scm ("run-kernel python3")
      ("kernel_info_request", "execute_request"): Use 'json->kernel-status'
      instead of alists.
  5. 24 Sep, 2019 11 commits
  6. 23 Sep, 2019 1 commit
    • Ludovic Courtès's avatar
      messages: Use a larger buffer for incoming messages. · 78d429fe
      Ludovic Courtès authored
      This "fixes" the Matplotlib example.  Previously, we'd silently truncate
      the "display_data" message containing the plot as we forwarded it,
      resulting in breakage down the road.
      * jupyter/messages.scm <top level>: Add call to 'zmq-set-buffer-size'.
  7. 20 Sep, 2019 7 commits
    • Ludovic Courtès's avatar
      Update example. · 04635011
      Ludovic Courtès authored
      * guix-kernel-demo.ipynb: Update.
    • Ludovic Courtès's avatar
      Don't spawn a default environment upfront. · beb421ac
      Ludovic Courtès authored
      This ensures we reply to "kernel_info_request" in a timely fashion, and
      that we don't spawn a useless environment.  It also allows the user to
      not repeat ";;guix run my-env" in subsequent cells since the default
      environment is now recorded across cells.
      * guix-jupyter-kernel.scm (%default-environment-property): New variable.
      (proxy-state-default-environment, set-proxy-state-default-environment):
      New procedures.
      (create-environment): Call 'set-proxy-state-default-environment'.
      (reply-execute-request): Use the environment returned by
      'proxy-state-default-environment'.  Print an error as HTML when it's
      <top level>: Remove call to 'start-container' for the "default"
    • Ludovic Courtès's avatar
      kernels: 'spawn-kernel' searches for executables in $PATH. · def14612
      Ludovic Courtès authored
      * jupyter/kernels.scm (spawn-kernel): Use 'execlp' instead of 'exec'.
      This is useful notably for "irkernel", which just says "R" without an
      absolute file name.
    • Ludovic Courtès's avatar
      Terminate and unregister existing proxy when recreating an environment. · f115d70a
      Ludovic Courtès authored
      * guix/jupyter/proxy.scm (unregister-proxied, terminate-proxied-kernel):
      New procedures.
      * guix-jupyter-kernel.scm (reply-execute-request): When 'lookup-proxied'
      returns true, call 'unmonitor-client' and 'terminate-proxied-kernel',
      and then 'create-environment'.
    • Ludovic Courtès's avatar
      proxy: Unmonitor kernels that are terminated. · 5945ac36
      Ludovic Courtès authored
      * guix/jupyter/proxy.scm (terminate-proxied-kernels): Add call to
    • Ludovic Courtès's avatar
      kernels: Increase timeout in kernel start-up test. · 87f44a41
      Ludovic Courtès authored
      * tests/kernels.scm ("run-kernel python3"): Increase timeout to 5000ms
      to increase the chances of getting a "starting" status message.
    • Ludovic Courtès's avatar
      servers: Add 'unmonitor-client'. · 88e4b3e0
      Ludovic Courtès authored
      * jupyter/servers.scm (unmonitor-client): New procedure.
      (serve-kernels)[handle-abort]: Change to simply accumulate requests.
      [handle-requests]: New procedure.
      Adjust call to 'handle-message' accordingly.
      * tests/servers.scm ("ping pong, many clients leaving dynamically,
      shell"): New test.
  8. 19 Sep, 2019 6 commits
    • Ludovic Courtès's avatar
      Environment contents are now displayed by the kernel. · f985eaac
      Ludovic Courtès authored
      The kernel has access to the manifest, so it can display its actual
      contents (including version numbers) upfront, before the environment is
      * guix/jupyter/inner-proxy.scm (kernel-info->shtml)
      (kernel-info->html): Remove.
      (reply-execute-request): Simply reply "Done!".
      * guix-jupyter-kernel.scm (manifest->shtml)
      (reply-for-environment, create-environment): New procedures.
      (reply-execute-request): Call 'create-environment'.
    • Ludovic Courtès's avatar
      Pass the store connection as a state property. · 647d5afd
      Ludovic Courtès authored
      * guix-jupyter-kernel.scm (%store-property): New variable.
      (proxy-state-store): New procedure.
      (reply-execute-request): Use it instead of using 'with-store'.
      (kernel): Use 'with-store' and pass the store as a state property.
    • Ludovic Courtès's avatar
      inner-proxy: Save the ZeroMQ context as a state property. · 6d550be4
      Ludovic Courtès authored
      * guix/jupyter/inner-proxy.scm (%context): Remove.
      (%zmq-context-property): New variable.
      (reply-execute-request): Use 'proxy-state-property' instead of referring
      to '%context'.
      (run-inner-proxy): Call 'zmq-create-context' here, and save the context
      as a %ZMQ-CONTEXT-PROPERTY property of the state.
    • Ludovic Courtès's avatar
      proxy: Add user-defined properties to <proxy-state>. · 95fdf89d
      Ludovic Courtès authored
      * guix/jupyter/proxy.scm (<proxy-state>)[properties]: New field.
      (proxy-state): Adjust accordingly.
      (proxy-state-property, set-proxy-state-property): New procedures.
    • Ludovic Courtès's avatar
      Add (guix jupyter inner-proxy). · 1201d247
      Ludovic Courtès authored
      * guix-jupyter-container.scm: Rename to...
      * guix/jupyter/inner-proxy.scm: ... this, and turn into a module.
      * (SOURCES): Add 'inner-proxy.scm' and remove
      * guix-jupyter-kernel.scm (container-path): Remove.
      (start-container)[spawn]: Use (guix jupyter inner-proxy).
    • Ludovic Courtès's avatar
      environment: Rewrite to use a profile manifest and 'eval/container*'. · 24c8abfd
      Ludovic Courtès authored
      * guix/jupyter/environ.scm: Remove.
      * guix/jupyter/environment.scm, guix/jupyter/containers.scm: New files.
      * tests/environ.scm: Remove.
      * (SOURCES): Adjust accordingly.
      (SCM_TESTS): Remove tests/environ.scm.
      * guix-jupyter-container.scm <top level>: Turn into...
      (run-inner-proxy): ... this.  New procedure.
      * guix-jupyter-kernel.scm (%inferior): New variable.
      (reply-execute-request): Use 'string-tokenize' and
      'specifications->manifest'.  Pass the manifest to 'start-container'.
      (module-to-import?): New procedure.
      (start-container): Rewrite to take a manifest and to evaluate code with
      'eval/container*'.  Set the 'GUIX_ENVIRONMENT' and 'JUPYTER_PATH'
      environment variables.
      * jupyter/kernels.scm (jupyter-kernel-path): Remove "GUIX_PROFILE"
  9. 17 Sep, 2019 2 commits
  10. 16 Sep, 2019 2 commits
    • Ludovic Courtès's avatar
      Require Guile-Gcrypt >= 0.2.0. · 84c4fdb6
      Ludovic Courtès authored
      * Ensure we have the (gcrypt mac) module.
      * jupyter/kernels.scm: Use (gcrypt mac) instead of (gcrypt hmac).
      (generate-key): Call 'generate-signing-key'.
      * jupyter/messages.scm: Use (gcrypt mac).
      (get-signature): Use 'mac-algorithm' instead of a symbol.
    • Ludovic Courtès's avatar
      json: Remove workaround for Guile-JSON 3.1.0. · 536d9f98
      Ludovic Courtès authored
      * jupyter/json.scm <top level>: Remove workaround for Guile-JSON 3.1.0.