Git Product home page Git Product logo

iocamljs's People

Contributors

andrewray avatar avsm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

iocamljs's Issues

iocamljs doesnt seem to evaluate anything any more

I've packaged up the ocaml-dockerfile bindings with an iocamljs notebook to explain them here:
http://anil-code.recoil.org/ocaml-dockerfile/

This all worked great, but I've just packaged up a refresh of the package and failed to recreate it. The iocamljs kernel now built (with latest opam-repository and OCaml 4.02.3) fails to evaluate the statements when play is pressed, but throws no errors in the JS console either. I'm a little stumped about where to start debugging and wondered if anyone else had this problem.

There's a Dockerfile that builds everything here:
https://github.com/avsm/ocaml-dockerfile/blob/master/Dockerfile.doc
If there's anything obviously wrong would love to know, otherwise will continue debugging.. (the Dockerfile can be run locally via docker build -f Dockerfile.doc . dfile && docker run -p 8888:8888 -d dfile

how to create a stand-alone js notebook

Hi,

sorry for the naive question. I am trying to put online a small tutorial using static webpages, using a custom iocamljs kernel. I've read the documentation to successfully build my custom kernel.js but I don't know what to do next. What static files should I copy on my website?

Request: BER MetaOCaml kernel.

There's a partly-working attempt in my gh-pages branch, and a sample notebook online. Here's what's currently working:

  • Support for the MetaOCaml syntax .< e >. and .~e
  • Code printing in the top level
  • Cross-stage persistence
  • Running generated code

As the online notebook shows, attempting to run generated code results in an error:

Exception:
Typetexp.Error (<abstr>, <abstr>,
 Typetexp.Unbound_module (Longident.Lident "Pervasives")).

The build commands I used to build the partly-working kernel are in the commit message.

stand-alone iocamljs kernels doesn't like `split-lines`

It seems stand-alone kernel.foo.js doesn't work with split lines in the code. I got the following error message:

[Error] TypeError: undefined is not a function (evaluating 'string.split(/\r\n?|\n/)')
    (anonymous function) (codemirror.js, line 5481)
    setValue (codemirror.js, line 4689)
    (anonymous function) (codemirror.js, line 4888)
    set_text (codecell.js, line 366)
    fromJSON (codecell.js, line 401)
    fromJSON (notebook.js, line 1556)
    load_notebook_success (notebook.js, line 1742)
    i (jquery.min.js, line 3)
    l (jquery.min.js, line 3)
    fireWith (jquery.min.js, line 3)
    k (jquery.min.js, line 5)
    (anonymous function) (jquery.min.js, line 5)

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.