{"id":20165729,"url":"https://github.com/allofphysicsgraph/sympy-in-docker","last_synced_at":"2025-03-03T03:24:44.514Z","repository":{"id":241401160,"uuid":"655464945","full_name":"allofphysicsgraph/sympy-in-docker","owner":"allofphysicsgraph","description":"sympy in Ubuntu","archived":false,"fork":false,"pushed_at":"2024-09-18T03:14:16.000Z","size":67,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-13T14:52:46.703Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/allofphysicsgraph.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2023-06-19T00:48:14.000Z","updated_at":"2024-05-26T02:05:06.000Z","dependencies_parsed_at":"2024-05-28T06:28:38.643Z","dependency_job_id":"2d88878f-10a5-4138-9586-b31fb9344150","html_url":"https://github.com/allofphysicsgraph/sympy-in-docker","commit_stats":null,"previous_names":["allofphysicsgraph/sympy-in-docker"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allofphysicsgraph%2Fsympy-in-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allofphysicsgraph%2Fsympy-in-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allofphysicsgraph%2Fsympy-in-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allofphysicsgraph%2Fsympy-in-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/allofphysicsgraph","download_url":"https://codeload.github.com/allofphysicsgraph/sympy-in-docker/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241601750,"owners_count":19988971,"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-11-14T00:38:54.514Z","updated_at":"2025-03-03T03:24:44.497Z","avatar_url":"https://github.com/allofphysicsgraph.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SymPy in Docker\n\nAssuming your have `docker` (or, after some editing, `podman`) and `make` installed, to build this container run\n```bash\nmake\n```\n\nOnce the container exists, Python3 and SymPy are available\n```bash\n$ docker run -it --rm sympyonubuntu python3 -c 'import sympy; print(sympy.__version__)'\n1.12\n\n$ docker run -it --rm sympyonubuntu python3 -c 'import sys; print(sys.version)'\n3.8.10 (default, Nov 22 2023, 10:22:35) \n```\n\nRun a script\n```bash\n$ docker run -it --rm -v `pwd`:/scratch --workdir /scratch sympyonubuntu python3 sympy_works.py \nsympy: 1.12\n\u003cclass 'sympy.core.add.Add'\u003e\nx + 2*y \n```\n\n```bash\ndocker run -it --rm sympyonubuntu python3 -c 'import sys; print(sys.version); import sympy; print(\"sympy:\",sympy.__version__); from sympy.parsing.latex import parse_latex; x = parse_latex(\"a = b\"); print(type(x)); print(x)'\n3.8.10 (default, Nov 22 2023, 10:22:35) \n[GCC 9.4.0]\nsympy: 1.12\n\u003cclass 'sympy.core.relational.Equality'\u003e\nEq(a, b)\n```\n\nAssuming you've copied `examples_of_valid_latex` into the local directory,\n```bash\nfor filename in examples_of_valid_latex/expr*.tex; do \n  docker run -it --rm -v `pwd`:/scratch --workdir /scratch sympyonubuntu python3 eval_latex.py $filename\ndone\n```\nThat folder is found in \u003chttps://github.com/allofphysicsgraph/latex-example-expressions/tree/master/examples_of_valid_latex\u003e\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fallofphysicsgraph%2Fsympy-in-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fallofphysicsgraph%2Fsympy-in-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fallofphysicsgraph%2Fsympy-in-docker/lists"}