REGINA-PYTHON(1)
π REGINA-PYTHON(1) β the manual, but make it make sense π
okay bestie, so this is the regina-python man page from The Regina Handbook, section 1. it's the command-line Python interface for Regina, and honestly? she's serving.
β¨ NAME β¨
regina-python β Regina's command-line Python interface. that's it, that's the girl. π
πΈ SYNOPSIS πΈ
regina-python [ -q, --quiet | -v, --verbose ] [ -n, --nolibs ] [ -a, --noautoimport ]
regina-python [ -q, --quiet | -v, --verbose ] [ -n, --nolibs ] [ -a, --noautoimport ] [ -i, --interactive ] script [ script-args ]
two whole moods. either you're just vibing in a session, or you're handing her a script to run. π
π¦ DESCRIPTION π¦
so Regina is a software package for studying 3-manifold triangulations and normal surfaces. but that's not all she does β other key features include angle structures, census enumeration, combinatorial recognition of triangulations, and high-level tasks like 3-sphere recognition and connected sum decomposition. she also comes with a full graphical user interface, plus Python bindings and a low-level C++ programming interface. multi-talented queen. π
this command starts an interactive Python session for Regina. and no, it's not the pretty GUI kind β it's a command-line Python session, direct text input/output, no graphical user interface, just you and the terminal, iykyk.
all of the objects, classes and methods from Regina's mathematical engine get made available through the module regina, which gets imported on startup (effectively running import regina). and on top of that, unless you pass --noautoimport, all of Regina's objects, classes and methods get imported directly into the current namespace (effectively running from regina import *). so like, everything's just there. periodt.
but wait, you don't have to do the interactive thing. instead of starting an interactive Python session, you can pass a Python script (with arguments if you want). in that case Regina will run the script β after first importing the regina module, obviously. and if you pass --interactive, Regina will leave you at a Python prompt once the script finishes. otherwise it exits Python and returns you to the command line. no notes. β¨
π OPTIONS π
-q,--quietβ start in quiet mode. no output will be produced except for serious errors. in particular, warnings get suppressed. this is equivalent to setting the environment variableREGINA_VERBOSITY=0. (shhh π€«)-v,--verboseβ start in verbose mode. additional diagnostic information will be output. this is equivalent to setting the environment variableREGINA_VERBOSITY=2. (she's yapping and we love that for her π£οΈ)-a,--noautoimportβ still import thereginamodule, but do not automatically import all of Regina's objects, classes and methods into the current namespace (that is, do not runfrom regina import *). this means that (for example) the main 3-manifold triangulation class must be accessed asregina.Triangulation3, not justTriangulation3. lowkey more typing, highkey more explicit. π«Ά-i,--interactiveβ run the script in interactive mode. after executing the given script, Regina will leave you in the Python interpreter so you can run your own additional commands. this option is only available when a script is passed. if no script is passed,regina-pythonwill always start in interactive mode. so like, it's giving redundant-but-make-it-clear. π
bestie reminder:-n/--nolibsshows up in the synopsis up there β¬οΈ but she does not get her own entry in this list. keep that in mind, don't @ me.
π ENVIRONMENT VARIABLES π
the following environment variables influence the behaviour of this program. most variables can also be set in the local configuration file ~/.regina-python using a line of the form option=value; exceptions are noted below. and important: environment variables take precedence over values in the configuration file. the env vars are the main character here. π
REGINA_VERBOSITYβ specifies how much output should be generated. recognised values are:0β display errors only; this is equivalent to passing the option--quiet.1β display errors and warnings; this is the default.2β display errors, warnings and diagnostic output; this is equivalent to passing the option--verbose.
REGINA_PYTHONβ the command used to start the Python interpreter. in general you should use the same version of Python that Regina was built against; otherwise Python might not be able to load thereginamodule. π normally you should not need to set this option yourself. by default, Regina will use the same Python installation that it was built against.REGINA_PYLIBDIRβ the directory containing the Python moduleregina. if you have installed Regina's Python module in a standard Python location (i.e., Python can import it directly without extendingsys.path), thenREGINA_PYLIBDIRshould be left empty or undefined. normally you should not need to set this option yourself. this program should know how to find Regina's Python module in standard situations, which include fixed filesystem installations (e.g., GNU/Linux and Windows), relocatable app bundles (e.g., macOS), and running directly from the source tree. she's self-sufficient like that. πREGINA_HOMEβ the directory beneath which Regina's data files are installed. in particular, Regina's census lookup routines will look for the census databases in the subdirectory$REGINA_HOME/data/census/.
β οΈ this option can only be set from the environment: it cannot be set in the configuration file ~/.regina-python.
normally you should not need to set this option yourself. this program should know how to find its data files in standard situations, which include fixed filesystem installations (e.g., GNU/Linux and Windows), relocatable app bundles (e.g., macOS), and running directly from the source tree. π
π MACOS USERS π
if you downloaded a drag-and-drop app bundle, this utility is shipped inside it. and if you dragged Regina to the main Applications folder, you can run it as /Applications/Regina.app/Contents/MacOS/regina-python. cute, tucked away, living inside the bundle. π
π WINDOWS USERS π
the command regina-python is not available under Windows. however, you can still use Python scripting in Regina's graphical user interface, by opening a graphical Python console or using script packets. different platform, same energy. π¦
β SEE ALSO β
regina-gui.
Regina comes with thorough API documentation, which describes in detail all of the objects, classes and methods that Regina makes available to Python. you can access this documentation via Help->Python API Reference in the graphical user interface, or read it online at http://regina-normal.github.io/engine-docs/. go read it, bestie, it's giving textbook but in a fun way. πβ¨
π AUTHOR π
many people have been involved in the development of Regina; see the users' handbook for a full list of credits. it takes a village, fr fr. π«Ά
and that's the whole page!! π this came from The Regina Handbook, and it's dated 25 August 2025. slay, bye, go triangulate something. πβ¨π
π¦ where this page comes from
- arch rolling: regina 7.4.1-4 Β· LicenseRef-Regina
- ubuntu resolute: regina-normal 7.4.1-1.1build1
- ubuntu stonking: regina-normal 7.4.1-1.2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms