{"id":20165747,"url":"https://github.com/allofphysicsgraph/containerized-miogatto-annotation","last_synced_at":"2026-02-07T01:03:09.037Z","repository":{"id":87923241,"uuid":"497148280","full_name":"allofphysicsgraph/containerized-miogatto-annotation","owner":"allofphysicsgraph","description":"Dockerfile for MioGatto - https://github.com/wtsnjp/MioGatto","archived":false,"fork":false,"pushed_at":"2022-06-20T19:44:03.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-28T02:05:24.423Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","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":"2022-05-27T21:56:44.000Z","updated_at":"2022-05-27T22:05:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"3df300e2-2049-4882-83e9-d7f6e4c28af1","html_url":"https://github.com/allofphysicsgraph/containerized-miogatto-annotation","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/allofphysicsgraph/containerized-miogatto-annotation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allofphysicsgraph%2Fcontainerized-miogatto-annotation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allofphysicsgraph%2Fcontainerized-miogatto-annotation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allofphysicsgraph%2Fcontainerized-miogatto-annotation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allofphysicsgraph%2Fcontainerized-miogatto-annotation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/allofphysicsgraph","download_url":"https://codeload.github.com/allofphysicsgraph/containerized-miogatto-annotation/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allofphysicsgraph%2Fcontainerized-miogatto-annotation/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265200599,"owners_count":23726858,"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:58.594Z","updated_at":"2026-02-07T01:03:03.970Z","avatar_url":"https://github.com/allofphysicsgraph.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Dockerfile for \u003chttps://github.com/wtsnjp/MioGatto\u003e\n\nHow to use:\n\n```bash\nmake docker_build\nmake docker_live\n```\nFrom within the container, suppose the file `/scratch/file_more.tex` contains\n```tex\n\\documentclass{article}\n\\usepackage{amsmath}\n\\begin{document}\nhello $x$\n\\begin{equation}\nx+2\n\\end{equation}\n\\end{document}\n```\nThen the command\n```bash\nlatexmlc --preload=[nobibtex,ids,mathlexemes,localrawstyles]latexml.sty \\\n         --format=html5 --pmml --cmml --mathtex --nodefaultresources \\\n         --dest=out.html /scratch/file_more.tex \n```\nproduces the output\n```bash\nlatexmlc (LaTeXML version 0.8.6)\nprocessing started Mon Jun 20 19:27:51 2022\nConversion complete: No obvious problems\nPost-processing complete: No obvious problems\nStatus:conversion:0\n```\n\nHere's what `out.html` looks like in Firefox:\n\n![Firefox](https://github.com/allofphysicsgraph/containerized-miogatto-annotation/blob/master/html_output.png?raw=true)\n\nThe next step is to run `python -m tools.preprocess /scratch/out.html` which relies on content in `/opt/MioGatto`\n```bash\nexport PYTHONPATH=\"$PYTHONPATH:/opt/MioGatto\"\npython -m tools.preprocess /scratch/out.html \n```\nwhich produces the output\n```bash\ntools.preprocess INFO: Begin to preprocess Paper \"out\"\n#indentifiers: 1\n#occurences: 2\nmi attributes: xref, id\ntools.preprocess INFO: Writing preprocessed HTML to sources/out.html\ntools.preprocess INFO: Writing initialized anno template to data/out_anno.json\ntools.preprocess INFO: Writing initialized mcdict template to data/out_mcdict.json\n```\n\nBecause the HTML file is named \"out\", pass that to the analyzer script\n```bash\npython -m tools.analyzer out\n```\n_Where I'm currently stuck, 1 of 2_: output is\n```bash\nRuntimeError: module compiled against API version 0xf but this version of numpy is 0xd\nTraceback (most recent call last):\n  File \"/usr/lib/python3.9/runpy.py\", line 197, in _run_module_as_main\n    return _run_code(code, main_globals, None,\n  File \"/usr/lib/python3.9/runpy.py\", line 87, in _run_code\n    exec(code, run_globals)\n  File \"/opt/MioGatto/tools/analyzer.py\", line 5, in \u003cmodule\u003e\n    import seaborn as sns\n  File \"/usr/local/lib/python3.9/dist-packages/seaborn/__init__.py\", line 2, in \u003cmodule\u003e\n    import matplotlib as mpl\n  File \"/usr/local/lib/python3.9/dist-packages/matplotlib/__init__.py\", line 207, in \u003cmodule\u003e\n    _check_versions()\n  File \"/usr/local/lib/python3.9/dist-packages/matplotlib/__init__.py\", line 192, in _check_versions\n    from . import ft2font\nImportError: numpy.core.multiarray failed to import\n```\n\n_Where I'm currently stuck, 2 of 2_: I don't understand how to launch the web client\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fallofphysicsgraph%2Fcontainerized-miogatto-annotation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fallofphysicsgraph%2Fcontainerized-miogatto-annotation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fallofphysicsgraph%2Fcontainerized-miogatto-annotation/lists"}