{"id":15166946,"url":"https://github.com/answerdotai/aplnb","last_synced_at":"2025-10-25T10:30:50.206Z","repository":{"id":256636038,"uuid":"855979676","full_name":"AnswerDotAI/aplnb","owner":"AnswerDotAI","description":"An IPython magic for Dyalog APL","archived":false,"fork":false,"pushed_at":"2024-12-15T03:29:39.000Z","size":415,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-02-08T00:13:47.670Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://answerdotai.github.io/aplnb/","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AnswerDotAI.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"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":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-11T19:19:58.000Z","updated_at":"2025-01-16T10:59:56.000Z","dependencies_parsed_at":"2024-09-12T06:09:43.400Z","dependency_job_id":"4315b327-8dbc-4a01-8822-288689a6be1b","html_url":"https://github.com/AnswerDotAI/aplnb","commit_stats":null,"previous_names":["answerdotai/aplnb"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnswerDotAI%2Faplnb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnswerDotAI%2Faplnb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnswerDotAI%2Faplnb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnswerDotAI%2Faplnb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AnswerDotAI","download_url":"https://codeload.github.com/AnswerDotAI/aplnb/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238120390,"owners_count":19419763,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-09-27T05:04:19.157Z","updated_at":"2025-10-25T10:30:49.896Z","avatar_url":"https://github.com/AnswerDotAI.png","language":"Jupyter Notebook","readme":"# Using `apl` magics\n\n\n\u003c!-- WARNING: THIS FILE WAS AUTOGENERATED! DO NOT EDIT! --\u003e\n\n`aplnb` adds `%apl` and `%%apl` functions to Jupyter and IPython, which\nexectute expressions in Dyalog APL.\n\n## Installation\n\nFirst, install [Dyalog APL](https://www.dyalog.com/). Dyalog provides a\nbasic license for free. Once Dyalog is installed, install aplnb with:\n\n    pip install aplnb\n\nOnce that’s complete, you can install the magics to all IPython and\nJupyter sessions automatically by running in your terminal:\n\n    aplnb_install\n\n## Usage\n\nAfter first running an `apl` magic in a notebook, the [APL language\nbar](https://abrudz.github.io/lb/apl) by Adám Brudzewsky is\nautomatically added to the current page. (There is one change to Adám’s\noriginal version, which is that you can type a backtick twice in a row\nto enter triple backticks. To get a `⋄` glyph, type backtick-q.)\n\nYou can use either a cell magic (`%%ai`) or a line magic (`%ai`). In\neither case the expression is evaluated and returned:\n\n``` python\n%%apl\ny←⍳3\nz←y×y\n```\n\n\u003cscript src=\"https://abrudz.github.io/lb/lb.js\"\u003e\u003c/script\u003e\n\n    [1, 4, 9]\n\n``` python\n%apl 3×⍳4\n```\n\n    [3, 6, 9, 12]\n\n``` python\n%apl ⎕A\n```\n\n    'ABCDEFGHIJKLMNOPQRSTUVWXYZ'\n\nYou can store the value of an expression in a python variable using the\nline magic. Scalars, lists, and nest lists are used:\n\n``` python\nz = %apl z\nprint(z)\n```\n\n    [1, 4, 9]\n\nTo avoid having the expression returned and/or displayed, end the last\nline with a `;`.\n\n``` python\n%%apl\na←2 2 ⍴ ⍳4;\n```\n\nYou can print from cell magics using the standard APL ⎕ glyph:\n\n``` python\n%%apl\n⎕←a;\n```\n\n    1 2\n    3 4\n\nTo use numpy, just pass the result of `%apl` into `np.array`:\n\n``` python\nimport numpy as np\n```\n\n``` python\na = %apl a\nnp.array(a)\n```\n\n    array([[1, 2],\n           [3, 4]])\n\n## Learning APL\n\nTo start learning APL, follow the [17 video\nseries](https://forums.fast.ai/t/apl-array-programming/97188) run by\nJeremy Howard, and have a look at the [study\nnotes](https://fastai.github.io/apl-study/apl.html).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanswerdotai%2Faplnb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanswerdotai%2Faplnb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanswerdotai%2Faplnb/lists"}