Skip to content
Draft
Show file tree
Hide file tree
Changes from 13 commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
66415bf
fix: Local launcher fixes
AlejandroFernandezLuces Nov 27, 2025
3af92b0
Merge branch 'main' into fix/local-launcher-fixes
AlejandroFernandezLuces Nov 27, 2025
4e30602
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Nov 27, 2025
02ea621
chore: adding changelog file 118.miscellaneous.md [dependabot-skip]
pyansys-ci-bot Nov 27, 2025
fac6d45
fix: Doc issues
AlejandroFernandezLuces Nov 27, 2025
75505cd
Merge branch 'fix/local-launcher-fixes' of https://github.com/ansys/a…
AlejandroFernandezLuces Nov 27, 2025
8b568ef
chore: adding changelog file 118.documentation.md [dependabot-skip]
pyansys-ci-bot Nov 27, 2025
ac0d341
fix: Add readmes to the examples
AlejandroFernandezLuces Nov 27, 2025
e76271a
Merge branch 'fix/local-launcher-fixes' of https://github.com/ansys/a…
AlejandroFernandezLuces Nov 27, 2025
a8152ac
fix: PyPandoc warning
AlejandroFernandezLuces Nov 27, 2025
288843c
fix: Examples
AlejandroFernandezLuces Nov 27, 2025
b1340b0
fixes
AlejandroFernandezLuces Nov 27, 2025
909160e
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Nov 27, 2025
9031914
fix: Remove unneeded files
AlejandroFernandezLuces Nov 28, 2025
5c5bd2d
Merge branch 'fix/local-launcher-fixes' of https://github.com/ansys/a…
AlejandroFernandezLuces Nov 28, 2025
2c694b4
fix: Examples
AlejandroFernandezLuces Nov 28, 2025
f2d93d1
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Nov 28, 2025
d40e767
Merge branch 'main' into fix/local-launcher-fixes
AlejandroFernandezLuces Nov 28, 2025
1a48355
fix: Install doc dependency
AlejandroFernandezLuces Nov 28, 2025
e283ecd
Merge branch 'fix/local-launcher-fixes' of https://github.com/ansys/a…
AlejandroFernandezLuces Nov 28, 2025
8063f82
fix: Matplotlib dep
AlejandroFernandezLuces Nov 28, 2025
b8918bb
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Nov 28, 2025
693bdac
fix: toml file
AlejandroFernandezLuces Nov 28, 2025
57d755b
Merge branch 'fix/local-launcher-fixes' of https://github.com/ansys/a…
AlejandroFernandezLuces Nov 28, 2025
4093e5b
fix: Warning messages as errors
AlejandroFernandezLuces Dec 1, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ celerybeat.pid
.env
.venv
env/
venv/
*venv/
ENV/
env.bak/
venv.bak/
Expand Down
2 changes: 1 addition & 1 deletion doc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
SPHINXOPTS = -j auto -W --color
SPHINXBUILD = sphinx-build
APIDIR = api
EXAMPLESDIR = examples
EXAMPLESDIR = examples
SOURCEDIR = source
BUILDDIR = _build

Expand Down
1 change: 1 addition & 0 deletions doc/source/changelog/118.documentation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix: Local launcher fixes
25 changes: 25 additions & 0 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,33 @@
"sphinx_design",
"ansys_sphinx_theme.extension.autoapi",
"sphinx_click", # Required by local-product-launcher
"sphinx_gallery.gen_gallery",
"sphinx_jinja",
]

# sphinx gallery options
sphinx_gallery_conf = {
# path to your examples scripts
"examples_dirs": ["../../examples"],
# path where to save gallery generated examples
"gallery_dirs": ["examples"],
# Pattern to search for example files
"filename_pattern": r"\.py",
# Remove the "Download all examples" button from the top level gallery
"download_all_examples": False,
# Sort gallery example by file name instead of number of lines (default)
"within_subsection_order": "FileNameSortKey",
# directory where function granular galleries are stored
"backreferences_dir": None,
# Modules for which function level galleries are created. In
"doc_module": "ansys-tools-common",
"image_scrapers": ("matplotlib",),
"ignore_pattern": r"__init__\.py",
"thumbnail_size": (350, 350),
"copyfile_regex": r".*\.rst",
}


# numpydoc configuration
numpydoc_show_class_members = False
numpydoc_xref_param_type = True
Expand Down
53 changes: 53 additions & 0 deletions doc/source/examples/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
:orphan:

Examples
========

This section shows how to use the local launcher.


.. raw:: html

<div class="sphx-glr-thumbnails">

.. thumbnail-parent-div-open

.. thumbnail-parent-div-close

.. raw:: html

</div>

Examples
========

This section shows how to use the local launcher tool.


.. raw:: html

<div class="sphx-glr-thumbnails">

.. thumbnail-parent-div-open

.. thumbnail-parent-div-close

.. raw:: html

</div>


.. toctree::
:hidden:
:includehidden:


/examples/local_launcher/index.rst



.. only:: html

.. rst-class:: sphx-glr-signature

`Gallery generated by Sphinx-Gallery <https://sphinx-gallery.github.io>`_
22 changes: 22 additions & 0 deletions doc/source/examples/local_launcher/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@


.. _sphx_glr_examples_local_launcher:

Examples
========

This section shows how to use the local launcher tool.


.. raw:: html

<div class="sphx-glr-thumbnails">

.. thumbnail-parent-div-open

.. thumbnail-parent-div-close

.. raw:: html

</div>

37 changes: 37 additions & 0 deletions doc/source/examples/local_launcher/sg_execution_times.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is an auto-generated file, I think it shouldn't be committed (also applies to some of the other files here).

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's add it to the .gitignore

:orphan:

.. _sphx_glr_examples_local_launcher_sg_execution_times:


Computation times
=================
**00:00.000** total execution time for 0 files **from examples\local_launcher**:

.. container::

.. raw:: html

<style scoped>
<link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/5.3.0/css/bootstrap.min.css" rel="stylesheet" />
<link href="https://cdn.datatables.net/1.13.6/css/dataTables.bootstrap5.min.css" rel="stylesheet" />
</style>
<script src="https://code.jquery.com/jquery-3.7.0.js"></script>
<script src="https://cdn.datatables.net/1.13.6/js/jquery.dataTables.min.js"></script>
<script src="https://cdn.datatables.net/1.13.6/js/dataTables.bootstrap5.min.js"></script>
<script type="text/javascript" class="init">
$(document).ready( function () {
$('table.sg-datatable').DataTable({order: [[1, 'desc']]});
} );
</script>

.. list-table::
:header-rows: 1
:class: table table-striped sg-datatable

* - Example
- Time
- Mem (MB)
* - N/A
- N/A
- N/A
37 changes: 37 additions & 0 deletions doc/source/examples/sg_execution_times.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@

:orphan:

.. _sphx_glr_examples_sg_execution_times:


Computation times
=================
**00:00.000** total execution time for 0 files **from examples**:

.. container::

.. raw:: html

<style scoped>
<link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/5.3.0/css/bootstrap.min.css" rel="stylesheet" />
<link href="https://cdn.datatables.net/1.13.6/css/dataTables.bootstrap5.min.css" rel="stylesheet" />
</style>
<script src="https://code.jquery.com/jquery-3.7.0.js"></script>
<script src="https://cdn.datatables.net/1.13.6/js/jquery.dataTables.min.js"></script>
<script src="https://cdn.datatables.net/1.13.6/js/dataTables.bootstrap5.min.js"></script>
<script type="text/javascript" class="init">
$(document).ready( function () {
$('table.sg-datatable').DataTable({order: [[1, 'desc']]});
} );
</script>

.. list-table::
:header-rows: 1
:class: table table-striped sg-datatable

* - Example
- Time
- Mem (MB)
* - N/A
- N/A
- N/A
9 changes: 9 additions & 0 deletions doc/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@ Ansys Common Tools provides a collection of tools for the PyAnsys ecosystem.

Understand how to use Python to interact programmatically with the tools.

.. grid-item-card:: Examples :material-regular:`play_arrow`
:padding: 2 2 2 2
:link: examples/index
:link-type: doc

Explore examples that show how to use the different tools in practice.

.. grid-item-card:: Contribute :material-regular:`group`
:padding: 2 2 2 2
:link: contributing
Expand All @@ -40,12 +47,14 @@ Ansys Common Tools provides a collection of tools for the PyAnsys ecosystem.




.. toctree::
:hidden:
:maxdepth: 3

getting_started/index
user_guide/index
api/index
examples/index
contributing
changelog
37 changes: 37 additions & 0 deletions doc/source/sg_execution_times.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@

:orphan:

.. _sphx_glr_sg_execution_times:


Computation times
=================
**00:00.000** total execution time for 0 files **from all galleries**:

.. container::

.. raw:: html

<style scoped>
<link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/5.3.0/css/bootstrap.min.css" rel="stylesheet" />
<link href="https://cdn.datatables.net/1.13.6/css/dataTables.bootstrap5.min.css" rel="stylesheet" />
</style>
<script src="https://code.jquery.com/jquery-3.7.0.js"></script>
<script src="https://cdn.datatables.net/1.13.6/js/jquery.dataTables.min.js"></script>
<script src="https://cdn.datatables.net/1.13.6/js/dataTables.bootstrap5.min.js"></script>
<script type="text/javascript" class="init">
$(document).ready( function () {
$('table.sg-datatable').DataTable({order: [[1, 'desc']]});
} );
</script>

.. list-table::
:header-rows: 1
:class: table table-striped sg-datatable

* - Example
- Time
- Mem (MB)
* - N/A
- N/A
- N/A
4 changes: 4 additions & 0 deletions examples/README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Examples
========

This section shows how to use the local launcher.
4 changes: 4 additions & 0 deletions examples/local_launcher/README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Examples
========

This section shows how to use the local launcher tool.
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[build-system]
build-backend = "flit_core.buildapi"
requires = [ "flit-core>=3.2,<4" ]

[project]
name = "example-httpserver-plugin"
authors = [ { name = "ANSYS, Inc.", email = "[email protected]" } ]
classifiers = [
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
]
dynamic = [ "description", "version" ]
dependencies = [ "ansys-tools-local-product-launcher", "requests" ]

entry-points."ansys.tools.local_product_launcher.launcher"."example_httpserver.__fallback__" = "example_httpserver_plugin:Launcher"
entry-points."ansys.tools.local_product_launcher.launcher"."example_httpserver.direct" = "example_httpserver_plugin:Launcher"
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Copyright (C) 2025 ANSYS, Inc. and/or its affiliates.
# SPDX-License-Identifier: MIT
#
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.

"""Example plugin for ansys-tools-local-product-launcher."""

from .launcher import Launcher, LauncherConfig

__version__ = "0.1.0"
__all__ = ["LauncherConfig", "Launcher"]
Loading