Giter VIP home page Giter VIP logo

spacemacs-jupyter's Introduction

jupyter layer

Table of Contents

TODOs

Keybindings to send code to repl for compatible modes

more keybindings for repl

Change spacemacs load babel languages function such that it first changes the order to make sure jupyter is the last element

Add this at a fitting position

(spacemacs|use-package-add-hook org
  :post-config (add-to-list 'org-babel-load-languages ((jupyter . t))))

Description

Spacemacs layer for https://github.com/dzop/emacs-jupyter

Features:

  • Interactive REPL
  • Jupyter kernels support for org-babel
  • auto-completion using Company in REPL and org-src-blocks

Install

To use this configuration layer, add it to your ~/.spacemacs. You will need to add jupyter to the existing dotspacemacs-configuration-layers list in this file.

Additionally you need to have jupyter available in your PATH.

The jupyter package also provides integration with org-babel via ob-jupyter. To use the kernels in jupyter just add (jupyter . t) to your org-babel-load-languages list as the last element. If no auto-completion is used adding to the variable is sufficient as spacemacs provides a hook that loads it the first time org-mode is started.

An example would be adding

(with-eval-after-load 'org
  (setq org-babel-load-languages
        (append org-babel-load-languages
                '((latex . t)
                  ;; jupyter has to be the last element
                  (jupyter . t))))
  ;; Execute load languages once, else autocompletion will only work in the
  ;; second org file one opens
  (spacemacs//org-babel-do-load-languages))

to your dotspacemacs/user-config.

Key bindings

To start a REPL use SPC a j j or SPC a j r and to connect to one SPC a j c.

Key BindingDescription
SPC x x xDoes thing01

spacemacs-jupyter's People

Contributors

benneti avatar vv111y avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.