{"id":13484447,"url":"https://github.com/WolframResearch/WolframLanguageForJupyter","last_synced_at":"2025-03-27T16:30:52.777Z","repository":{"id":43921732,"uuid":"166462962","full_name":"WolframResearch/WolframLanguageForJupyter","owner":"WolframResearch","description":"Wolfram Language kernel for Jupyter notebooks","archived":false,"fork":false,"pushed_at":"2023-12-22T00:50:25.000Z","size":354,"stargazers_count":1086,"open_issues_count":41,"forks_count":128,"subscribers_count":49,"default_branch":"master","last_synced_at":"2025-03-25T16:18:34.999Z","etag":null,"topics":["jupyter","jupyter-kernels","mathematica","wolfram-language"],"latest_commit_sha":null,"homepage":null,"language":"Mathematica","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/WolframResearch.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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}},"created_at":"2019-01-18T19:37:06.000Z","updated_at":"2025-03-23T03:40:02.000Z","dependencies_parsed_at":"2024-02-18T00:31:59.014Z","dependency_job_id":"11e14cf6-3f40-4b25-aa21-72e67cd6a0c0","html_url":"https://github.com/WolframResearch/WolframLanguageForJupyter","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WolframResearch%2FWolframLanguageForJupyter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WolframResearch%2FWolframLanguageForJupyter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WolframResearch%2FWolframLanguageForJupyter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WolframResearch%2FWolframLanguageForJupyter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WolframResearch","download_url":"https://codeload.github.com/WolframResearch/WolframLanguageForJupyter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245882284,"owners_count":20687860,"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":["jupyter","jupyter-kernels","mathematica","wolfram-language"],"created_at":"2024-07-31T17:01:24.580Z","updated_at":"2025-03-27T16:30:52.373Z","avatar_url":"https://github.com/WolframResearch.png","language":"Mathematica","funding_links":[],"categories":["Mathematica","Jupyter内核"],"sub_categories":[],"readme":"# Wolfram Language kernel for Jupyter notebooks\n\nJupyter provides a protocol (ZMQ) to connect their notebooks to various languages. This project defines a Wolfram Language kernel which can be used in Jupyter notebooks.\n\n# Prerequisites\n\nOn your machine, you will need:\n\n* Jupyter\n* Wolfram Engine, i.e., a Wolfram Desktop or Mathematica installation\n* Optional, but recommended: `wolframscript`\n\n# Installation\n\nThere are **two** ways to make the Wolfram Language available in Jupyter:\n\n* Using the `wolframscript` command line script interpreter\n* Using Wolfram Language commands from the `WolframLanguageForJupyter` paclet.\n\n## Method 1: Using `wolframscript`\n\nOn macOS/Unix: Clone the repository\n\n\tgit clone https://github.com/WolframResearch/WolframLanguageForJupyter.git\n\nRun the following command in your shell to make the Wolfram Language engine available to Jupyter:\n\n\t./configure-jupyter.wls add\n\nOn Windows: Follow the fist two steps [here](https://help.github.com/en/github/creating-cloning-and-archiving-repositories/cloning-a-repository), and on the the third step select `Download Zip`, and unzip the file using a tool for Windows. Open PowerShell in the directory of the unzipped folder\n\nRun the following command in your shell to make the Wolfram Language engine available to Jupyter:\n\n\t.\\configure-jupyter.wls add\n\n**Notes:** \n\n* If the location of the Wolfram Engine changes, you will have to run `configure-jupyter.wls` again.\n\n* `configure-jupyter.wls` gives an error if the Wolfram Engine could not be added.\n\nFor more configuration options run:\n\n\t./configure-jupyter.wls help\n\n## Method 2: Using Wolfram Language\n\nYou can download the latest version of the paclet here:\n\nhttps://github.com/WolframResearch/WolframLanguageForJupyter/releases\n\nTo install the paclet, run the following command with Wolfram Language (replacing x, y, and z with the correct values):\n\n\tPacletInstall[\"WolframLanguageForJupyter-x.y.z.paclet\"]\n\nTo load the paclet, run:\n\n\tNeeds[\"WolframLanguageForJupyter`\"]\n\nTo add the Wolfram Language to Jupyter, run:\n\n\tConfigureJupyter[\"Add\"]\n\nTo specify a specific Jupyter binary, run:\n\n\tConfigureJupyter[\"Add\", \"JupyterInstallation\" -\u003e \"...\"]\n\nTo specify a specific Wolfram Engine binary, run:\n\n\tConfigureJupyter[\"Add\", \"WolframEngineBinary\" -\u003e \"...\" ]\n\nPlease note, however, that the value for the `\"WolframEngineBinary\"` option should not be a `wolframscript` path.\n\n# Testing your installation\n\nThe following command should now list the Wolfram Engine:\n\n\tjupyter kernelspec list\n\nThe output should include a line like this:\n\n\twolframlanguage12    C:\\ProgramData\\jupyter\\kernels\\wolframlanguage12\n\n## To test your installation in a notebook, run the following command: \n\n\tjupyter notebook\n\nThen select Wolfram Language from the drop down menu:\n\n![menu](images/menu-01.png)\n\nAfter the In[] prompt you can now type a Wolfram Language command (use shift-enter to evaluate):\n\n![in-out-1](images/in-out-01.png)\n\nOutputs are either strings, for simple textual results, or images, for graphics and typeset results:\n\n![in-out-2](images/in-out-02.png)\n\nAny messages that occur during evaluation are displayed:\n\n![in-out-3](images/in-out-03.png)\n\n## To test your installation in the terminal, run the following command:\n\tjupyter-console --kernel=wolframlanguage12\n\n# Building the WolframLanguageForJupyter paclet\n\nTo build the WolframLanguageForJupyter paclet file yourself, run:\n\n\t./configure-jupyter.wls build\n\nThis creates the `WolframLanguageForJupyter-x.y.z.paclet` file (use the `PacletInfo.m` to increment the version).\n\n# Removing your installation\n\n## Method 1: Using `wolframscript`\n\nRun the following command to remove the Wolfram Language engine from Jupyter:\n\n\t./configure-jupyter.wls remove\n\n## Method 2: Using Wolfram Language\n\nRun the following command:\n\n\tConfigureJupyter[\"Remove\"]\n\n# Links\n\n* https://github.com/WolframResearch/WolframLanguageForJupyter\n* https://jupyter.readthedocs.io/en/latest/projects/content-projects.html\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FWolframResearch%2FWolframLanguageForJupyter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FWolframResearch%2FWolframLanguageForJupyter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FWolframResearch%2FWolframLanguageForJupyter/lists"}