Skip to content

How to use this project with other libraries ? #11

Open

Description

@kracekumar

Can you explain the process how the this code was generated? Is Cpython code converted using emscripten? if so can you please explain the steps.

In order to use empythoned in my project, is it enough to load dist/worker.js in my html and which will load dist/python.opt.js?

Activity

  1. kracekumar commented on Mar 24, 2013

    @kracekumar
    Author

    I am able to use js in dist, here is the demo https://github.com/kracekumar/test-empythoned, just wanted to know how to convert CPython to js.

  2. kracekumar commented on Mar 24, 2013

    @kracekumar
    Author

    @nightpool: I got that, but I am looking for converting CPython to JS. emcc takes single file, looking how to convert entire code base.

  3. nightpool commented on Mar 24, 2013

    @nightpool

    Use the build script in the main directory?

    EDIT: Oops, I just deleted my last comment. Here's what was in it, for posterity:
    What empythoned converts is the CPython interpreter. You can then use that to run (in the browser) arbitrary javascript (ED: typo) python code.

  4. kracekumar commented on Mar 25, 2013

    @kracekumar
    Author

    Thanks @nightpool .

  5. kracekumar commented on Apr 2, 2013

    @kracekumar
    Author

    Seems issue with empythoned build script. emscripten-core/emscripten#1011

  6. astromme commented on May 10, 2013

    @astromme

    I am having the same problem that kracekumar is having when I try and use empythoned from a chrome app.

  7. kracekumar commented on May 11, 2013

    @kracekumar
    Author

    @astromme I was able to create chrome extension offline-python, but import statement fails.

  8. astromme commented on May 11, 2013

    @astromme

    Yes, thats what I mean. I did a little bit of digging, and I think there is some bug in how chrome packaged apps and extensions handle the emscripten FS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions