{"id":20482314,"url":"https://github.com/agoose77/jupytex","last_synced_at":"2025-12-30T22:07:38.126Z","repository":{"id":62573461,"uuid":"123421594","full_name":"agoose77/jupytex","owner":"agoose77","description":"Jupyter execution of LaTeX code environments","archived":false,"fork":false,"pushed_at":"2021-05-21T13:55:40.000Z","size":57,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-16T17:26:32.208Z","etag":null,"topics":["julia","jupyter","latex","python","pythontex","r"],"latest_commit_sha":null,"homepage":"","language":"Python","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/agoose77.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-03-01T10:45:25.000Z","updated_at":"2021-05-21T13:55:42.000Z","dependencies_parsed_at":"2022-11-03T16:46:49.540Z","dependency_job_id":null,"html_url":"https://github.com/agoose77/jupytex","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agoose77%2Fjupytex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agoose77%2Fjupytex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agoose77%2Fjupytex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agoose77%2Fjupytex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/agoose77","download_url":"https://codeload.github.com/agoose77/jupytex/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242058084,"owners_count":20065062,"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":["julia","jupyter","latex","python","pythontex","r"],"created_at":"2024-11-15T16:12:28.559Z","updated_at":"2025-12-30T22:07:38.077Z","avatar_url":"https://github.com/agoose77.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JupyTeX\n[![pypi-badge][]][pypi]\n\n[pypi-badge]: https://img.shields.io/pypi/v/jupytex\n[pypi]: https://pypi.org/project/jupytex\n\nProvides Jupyter-backed execution of LaTeX `code` environments, and embeds the results. Similar in concept to [PythonTex](https://github.com/gpoore/PythonTex), but focuses on code _execution_, and avoids any language specific features.\n\nInstall with `pip install jupytex`.\n\n## How to Use\n1. Run `jupytex install` in LaTeX project directory (or provide an install directory with `-d DIR`) to create the necessary `.latexmkrc` and `jupytex.sty` files\n2. Add `\\usepackage{jupytex}` to the document header\n3. Declare code environments with\n    ```latex\n    \\begin{code}{language}[opts]\n        Some source code\n    \\end{code}\n    ```\n    See the configuration section for valid options in `opts`.\n4. Run `jupytex make` (which is a pass-through to `latexmk --shell-escape`) to invoke `latexmk`.\n### Example Python Script\n```latex\n\\begin{code}{python}[kernel=python3]\n    print(\"$x + y = z$\")\n\\end{code}\n```\n## Removing from Project\nRun `jupytex uninstall` in LaTeX project directory (or provide an install directory with `-d DIR`) to remove the installed `.latexmkrc` and `jupytex.sty` files\n## Cleaning Files\nRun `jupytex clean` (which is a pass-through to `latexmk -c` or `latexmk -C`) to remove both LaTeX and JupyTex-related run files.\n## Flow Control\n1. `jupytex.sty` declares dependency upon `\\jobname.timestamp`\n1. `jupytex.sty` macro writes code blocks to numbered `.code` files and attempts to include results\n1. Code 'blocks' are written to a `\\jobname.blocks` csv file\n1. `jupytex hash` is invoked to calculate the md5 hash for all of the blocks, which is written to `\\jobname.hash`. In future this should only be performed per-kernel-session.\n1. If `\\jobname.hash` has been modified, `jupytex execute` is invoked for the corresponding job, the code blocks executed, and results written to `.result` files, and errors to `.traceback` files. Code blocks which do not write to stdout write an empty results file. `\\jobname.timestamp` is updated with new timestamp.\n1. `latexmk` performs a new pass for the dependencies upon `\\jobname.timestamp`\n\n## Configuration\n* Each code block must be given a language. \n* One can specify the Jupyter kernel name with a `kernel` key parameter, which will be used instead of the language if present. One can also access an existing kernel, by passing the name of a connection file. \n* A `session` key parameter may be passed to create a new kernel associated with the kernel-session pair.  If the `kernel` parameter is set to a connection file, then *this will create a new client to the same kernel*.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagoose77%2Fjupytex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fagoose77%2Fjupytex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagoose77%2Fjupytex/lists"}