GithubHelp home page GithubHelp logo

taiansu / ielixir Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pprzetacznik/ielixir

0.0 2.0 0.0 171 KB

Jupyter's kernel for Elixir programming language

License: Other

Elixir 51.27% Shell 0.90% Jupyter Notebook 47.83%

ielixir's Introduction

IElixir

Jupyter's kernel for Elixir

Build Status Inline docs Coverage Status Join the chat at https://gitter.im/pprzetacznik/IElixir

Hex: https://hex.pm/packages/ielixir.

Please see generated documentation for implementation details: http://hexdocs.pm/ielixir/.

##Getting Started

Configure Jupyter

$ git clone https://github.com/jupyter/notebook.git
$ cd notebook
$ virtualenv jupyter-env
$ source jupyter-env/bin/activate
(jupyter-env) $ pip install --pre -e .
(jupyter-env) $ pip install jupyter-console

Configure IElixir

Clone IElixir repository and prepare the project

$ git clone https://github.com/pprzetacznik/IElixir.git
$ cd IElixir
$ mix deps.get
$ mix deps.compile
$ mix test
$ MIX_ENV=prod mix compile

Generate jupyter kernel file by installation script:

$ ./install_script.sh

Or do it manually

Create and edit kernel.json file

$ mkdir ~/.ipython/kernels/ielixir
$ vim ~/.ipython/kernels/ielixir/kernel.json

Put into the file following content:

{
  "argv": ["{PATH_TO_YOUR_IELIXIR_PROJECT}/start_script.sh", "{connection_file}"],
  "display_name": "ielixir",
  "language": "Elixir"
}

Use IElixir

Run Jupyter console with following line:

(jupyter-env) $ jupyter console --kernel ielixir

Run Jupyter Notebook with following line:

(jupyter-env) $ jupyter notebook resources/example.ipynb

Go to http://localhost:8888/ site (by default) in your browser and pick IElixir kernel:

Pick IElixir

Evaluate some commands in your new notebook:

IElixir basics

Generate documentation

Run following command and see doc directory for generated documentation in HTML:

$ mix docs

References

Some useful articles:

I was inspired by following codes and articles:

License

Copyright 2015 Piotr Przetacznik

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

  http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

ielixir's People

Contributors

pprzetacznik avatar jwarlander avatar aebrahim avatar nicholaides avatar n-riesco avatar taiansu avatar thomasjm avatar jisaacstone avatar

Watchers

 avatar James Cloos 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.