{"id":14977407,"url":"https://github.com/ali1rathore/elm_magic","last_synced_at":"2026-04-02T02:08:09.423Z","repository":{"id":21825157,"uuid":"94019713","full_name":"ali1rathore/elm_magic","owner":"ali1rathore","description":"Elm Magic provides IPython \u0026 Jupyter magics for executing elm-lang code","archived":false,"fork":false,"pushed_at":"2024-12-06T14:34:40.000Z","size":101,"stargazers_count":3,"open_issues_count":14,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-02-18T17:37:26.025Z","etag":null,"topics":["elm","elm-lang","ipython","ipython-magic","ipython-notebook","jupyter","jupyter-notebook","notebook"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ali1rathore.png","metadata":{"files":{"readme":"README.rst","changelog":"HISTORY.rst","contributing":"CONTRIBUTING.rst","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS.rst"}},"created_at":"2017-06-11T17:11:56.000Z","updated_at":"2025-02-24T16:05:12.000Z","dependencies_parsed_at":"2023-10-16T08:25:17.238Z","dependency_job_id":"3eed8dac-0ff8-43ff-a62b-3cf73f84c1a3","html_url":"https://github.com/ali1rathore/elm_magic","commit_stats":null,"previous_names":["ali--/elm_magic"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ali1rathore/elm_magic","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ali1rathore%2Felm_magic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ali1rathore%2Felm_magic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ali1rathore%2Felm_magic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ali1rathore%2Felm_magic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ali1rathore","download_url":"https://codeload.github.com/ali1rathore/elm_magic/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ali1rathore%2Felm_magic/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31294398,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T01:43:37.129Z","status":"online","status_checked_at":"2026-04-02T02:00:08.535Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["elm","elm-lang","ipython","ipython-magic","ipython-notebook","jupyter","jupyter-notebook","notebook"],"created_at":"2024-09-24T13:55:36.177Z","updated_at":"2026-04-02T02:08:09.260Z","avatar_url":"https://github.com/ali1rathore.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"=========\nElm Magic\n=========\n\nCompile and render Elm code in IPython and Jupyter notebooks\n\n.. image:: https://raw.github.com/ali--/elm_magic/master/docs/screenshot1.png\n\na notebook with pure elm : https://gist.github.com/anonymous/68d36f1b6026893bc08b22b053e2f42e\n\na notebook with elm and python : https://gist.github.com/anonymous/60261d86af6ab9b4a0a398f39cf40cc1\n\n.. image:: https://img.shields.io/pypi/v/elm_magic.svg\n        :target: https://pypi.python.org/pypi/elm_magic\n\n.. image:: https://img.shields.io/travis/ali--/elm_magic.svg\n        :target: https://travis-ci.org/ali--/elm_magic\n\n.. image:: https://readthedocs.org/projects/elm-magic/badge/?version=latest\n        :target: https://elm-magic.readthedocs.io/en/latest/?badge=latest\n        :alt: Documentation Status\n\n.. image:: https://pyup.io/repos/github/ali--/elm_magic/shield.svg\n     :target: https://pyup.io/repos/github/ali--/elm_magic/\n     :alt: Updates\n\nElm Magic provides IPython magic commands that execute elm-lang code\n\nUsage\n-----\n\n.. code-block:: python\n\n    In [1]: %load_ext elm_magic\n\n    In [2]: %%elm\n       ...: import Html exposing (text)\n       ...: main =\n       ...:   text \"Hello World\"\n    Out[2]:\n       ...: Hello World\n\n    In [3]: %%elm -i elm-lang/http elm-lang/mouse -w /tmp/myelmdir\n       ...: \u003celm source code\u003e\n    \nThis magic will::\n\n  (1) use /tmp/myelmdir for workdir (uses new temporary dir by default)\n  (2) install elm-lang/http and elm-lang/mouse with elm-package install\n  (3) compile the cell input with elm-make \n  (4) display the cell output as html\n\nThe -r flag renders the cell contents with elm-static-html\nThe cell must look exactly like this: \n\n.. code-block:: python\n\n    In [4]: %%elm -r\n       ...: module Main exposing (..)\n       ...: import Html exposing (text)\n       ...: view = \n       ...:   text \"Hello World\"\n    Out[4]:\n       ...: Hello World\n\n\nInstallation\n------------\n\nInstall using pip::\n\n    pip install --upgrade elm_magic\n..\n\n\nIf elm and nodejs are not installed, you can try::\n\n    elm_magic install --target \u003cinstall-dir\u003e\n\nwhere \u003cinstall-dir\u003e is writable by the current user.\nand in the user's PATH (e.g /usr/local/ or /opt/conda)\n\nLoad the magic extension in IPython or Jupyter::\n \n        %load_ext elm_magic\n\nthen start using the %%elm magic::\n     \n        %%elm \n          ... elm-lang code ...\n\n\nConfiguration\n-------------\n\nsee or set configuration parameters::\n\n        %config ElmMagic\n\nFeatures\n--------\n\n* provides %%elm magic that executes elm-lang and displayes the result\n* can be used with any jupyter kernel\n* directory used by elm-make is configurable\n* provides cli for installing nodejs and elm\n\nCredits\n---------\n\nThis package was created with Cookiecutter_ and the `audreyr/cookiecutter-pypackage`_ project template.\nStarted with the help of https://github.com/abingham/jupyter-elm-kernel\n\n.. _Cookiecutter: https://github.com/audreyr/cookiecutter\n.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage\n\n* Free software: GNU General Public License v3\n* Documentation: https://elm-magic.readthedocs.io.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fali1rathore%2Felm_magic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fali1rathore%2Felm_magic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fali1rathore%2Felm_magic/lists"}