{"id":21734691,"url":"https://github.com/ansys/pyansys-cheat-sheet","last_synced_at":"2026-05-10T19:53:08.086Z","repository":{"id":103040309,"uuid":"510388510","full_name":"ansys/pyansys-cheat-sheet","owner":"ansys","description":"This repository contains the cheat-sheets for PyAnsys","archived":false,"fork":false,"pushed_at":"2024-12-16T14:20:19.000Z","size":13221,"stargazers_count":6,"open_issues_count":3,"forks_count":3,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-01-25T20:42:43.796Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://cheatsheets.docs.pyansys.com","language":"TeX","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/ansys.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"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,"publiccode":null,"codemeta":null}},"created_at":"2022-07-04T14:20:13.000Z","updated_at":"2024-07-25T14:09:40.000Z","dependencies_parsed_at":"2023-11-09T15:46:40.684Z","dependency_job_id":"eb961dd8-b9d7-4a58-a245-e6cc02637f41","html_url":"https://github.com/ansys/pyansys-cheat-sheet","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/ansys%2Fpyansys-cheat-sheet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ansys%2Fpyansys-cheat-sheet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ansys%2Fpyansys-cheat-sheet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ansys%2Fpyansys-cheat-sheet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ansys","download_url":"https://codeload.github.com/ansys/pyansys-cheat-sheet/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244712051,"owners_count":20497431,"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-26T05:10:09.978Z","updated_at":"2026-05-10T19:53:03.062Z","avatar_url":"https://github.com/ansys.png","language":"TeX","funding_links":[],"categories":[],"sub_categories":[],"readme":"PyAnsys cheat sheets\n====================\n\nIntroduction\n------------\nThis repository contains cheat sheets for PyAnsys libraries. In the\n`PyAnsys Cheat Sheet documentation \u003chttps://cheatsheets.docs.pyansys.com/\u003e`_,\nyou can see the cheat sheets that have been released for various PyAnsys\nlibraries. These cheat sheets are carefully crafted to provide concise and\npractical information, serving as valuable references. On the\n`PyAnsys Cheat Sheet Issues \u003chttps://github.com/ansys/pyansys-cheat-sheet/issues\u003e`_\npage, you can create issues to report bugs and request new features. On the\n`PyAnsys Cheat Sheet Discussions \u003chttps://github.com/ansys/pyansys-cheat-sheet/discussions\u003e`_\npage or the `Discussions \u003chttps://discuss.ansys.com/\u003e`_ page on the Ansys Developer portal,\nyou can post questions, share ideas, and get community feedback..\n\nThe following sections describe how to create, generate, and deploy a PyAnsys cheat sheet.\n\nCreate a cheat sheet\n~~~~~~~~~~~~~~~~~~~~\nYou create a cheat sheet from a template as indicated in these steps:\n\n#. In the `\u003ccheat_sheets\u003e`_ folder, create a child folder with an appropriate project\n   name. For example, ``pymapdl_cheat_sheet``.\n#. In the `\u003ctemplate\u003e`_ folder, copy ``pyansys_cheat_sheet.tex`` and then\n   paste it into your new project folder.\n#. Rename this copy of ``pyansys_cheat_sheet.tex`` so that it uses your project folder\n   name. For example, ``pymapdl_cheat_sheet.tex``.\n#. Inside this LaTeX file, do the following:\n\n   #. In the ``pdfinfo`` element, change the PDF title from ``PyAnsys cheat sheet`` to\n      your project title and then add a subject and keywords.\n   #. Under the ``Add the title of cheat sheet here`` comment, change the title from\n      ``PyAnsys cheat sheet`` to ``\u003cproject title\u003e cheat sheet``.\n\n      The next several steps explain how to complete the ``section`` element for each\n      of the cheat sheet's three columns.\n\n   #. Replace the ``Add heading here`` text with the column heading.\n   #. Replace the ``Add description of code block here`` text with a description.\n   #. Replace the ``Add code here`` text with a Python code block.\n   #. If you have more than one code block, add the following code:\n\n      .. code:: TeX\n\n            \\begin{lstlisting}[language=Python]\n            Add code here\n            \\end{lstlisting} \n\n#. In the ``References from PyAnsys documentation`` subsection, add references to the\n   library's documentation, replacing link names with the names of the guides. For example,\n   this reference adds a link to the *PyAnsys Developer's Guide*:\n\n   .. code:: TeX\n\n        item \\href{https://dev.docs.pyansys.com/}{\\color{blue}{PyAnsys Developer's Guide}}\n\nGenerate the cheat sheet\n~~~~~~~~~~~~~~~~~~~~~~~~\n\n**For Linux users**\n\n\n#. In the root directory of the repository, open the ``makefile`` file and add this command in\nthe ``all: $(CHEATSHEETS)`` section:\n\n   .. code:: bash\n\n        \u003cyour_project\u003e_cheat_sheat:\n\t        latexmk -f -pdf -use-make cheat_sheats/\u003cyour_folder_name\u003e/\u003cyour_tex_file_name\u003e.tex -cd -outdir=../../$(BUILD) -interaction=nonstopmode || true\n           convert -density 150 -scene 1 $(BUILD_DIR)/\u003cyour_tex_file_name\u003e.pdf $(BUILD_DIR)/\u003cyour_tex_file_name\u003e.png\n\n#. In this new comand, replace ``\u003cyour_project\u003e``, ``\u003cyour_folder_name\u003e``, and ``\u003cyour_tex_file_name\u003e``\n   with your actual project name, folder name, and TeX filename, respectively.\n\n   This command uses ``latexmk`` to compile your TeX file into a PDF and then converts the first page of the PDF into a PNG file.\n\n#.  At the top of the file, in the ``CHEATSHEETS=`` line, add the project name of your cheat sheet.\n\n**For Windows users**\n\n#. In the root directory of the repository, open the ``makefile`` file and add this command in\n   the ``all: $(CHEATSHEETS)`` section:\n\n   .. code:: bash\n\n         :\u003cyour_project\u003e_cheat_sheet\n            pdflatex -output-directory=%BUILDDIR% cheat_sheats/\u003cyour_folder_name\u003e/\u003cyour_tex_file_name\u003e.tex --interaction=nonstopmode\n            goto end\n\n#. In this new command, replace ``\u003cyour_project\u003e``, ``\u003cyour_folder_name\u003e``, and ``\u003cyour_tex_file_name\u003e``\n   with your actual project name, folder name, and TeX filename, respectively.\n   \n   This command uses ``latexmk`` to compile your TeX file into a PDF.\n\n#. In the root directory of the repository, open the ``make.bat`` file and add the ``CALL`` command for your project\n   to the ``:all`` section.\n\n\nGenerate a cheat sheet using Docker\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nYou can use Doker to generate a cheat sheet. Using Docker allows you to generate a cheat\nsheet without worrying about dependencies and environment setup. The Docker container\nincludes all the necessary dependencies for cheat sheet development. For more information,\nsee the `README.md \u003chttps://github.com/ansys/pyansys-cheat-sheet/tree/main/docker\u003e_`\nfile in the repository's ``docker`` folder.\n\nDeploy a cheatsheet\n~~~~~~~~~~~~~~~~~~~\n\nOnce your cheat sheet is approved for release, you can deploy it by adding it to the\n`PyAnsys Cheat Sheets documentation \u003chttps://cheatsheets.docs.pyansys.com/\u003e`_.\n\n#. In the ``doc/source`` directory, open the ``index.rst`` file, which is the\n   only page in the documentation.\n\n#. To add a new grid item card for your cheat sheet, paste this code block where\n   your cheat sheet should appear alphabetically in the grid:\n\n.. code:: bash\n\n   .. grid-item::\n\n           .. card:: \u003cyour_project_name\u003e\n               :img-top: https://cheatsheets.docs.pyansys.com/\u003cyour_tex_file_name\u003e.png\n               :link: https://cheatsheets.docs.pyansys.com/\u003cyour_tex_file_name\u003e.pdf\n\n#. In this code block, replace ``\u003cyour_project_name\u003e``, ``\u003cyour_tex_file_name\u003e.png``, and\n   ``\u003cyour_tex_file_name\u003e.pdf`` with your actual project name and the TeX filenames for your PNG\n   file and PDF file, respectively.\n\nAdditionally, ensure that links for viewing and downloading the cheat sheet are added to a\n\"Documentation and issues\" section in both your PyAnsys library's README file and the overall\n``index`` RST file for your library's documenation. For example, see this section in both\nthe ``README.rst`` file for the `PyFluent repository \u003chttps://github.com/ansys/pyfluent\u003e`_ and the \noverall `index RST file \u003chttps://fluent.docs.pyansys.com/version/stable/\u003e`_ for the PyFluent\ndocumentation.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fansys%2Fpyansys-cheat-sheet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fansys%2Fpyansys-cheat-sheet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fansys%2Fpyansys-cheat-sheet/lists"}