Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Reorganize examples folder: move dangling files to topic subdirectories#962

Merged
SkBlaz merged 3 commits intomasterSkBlaz/py3plex:masterfrom
copilot/reorganize-examples-folderSkBlaz/py3plex:copilot/reorganize-examples-folderCopy head branch name to clipboard
Dec 29, 2025
Merged

Reorganize examples folder: move dangling files to topic subdirectories#962
SkBlaz merged 3 commits intomasterSkBlaz/py3plex:masterfrom
copilot/reorganize-examples-folderSkBlaz/py3plex:copilot/reorganize-examples-folderCopy head branch name to clipboard

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Dec 29, 2025

Three example files were loose in examples/ root instead of organized into topic-specific subdirectories.

Changes

Moved files to appropriate subdirectories:

  • visualization_pymnet_style.pyexamples/visualization/
  • master_regulators_example.pyexamples/case_studies/
  • r_interop_example.pyexamples/advanced/

Fixed r_interop_example.py sys.path after move:

# Before (worked from examples/ root)
sys.path.insert(0, str(Path(__file__).parent.parent))

# After (works from examples/advanced/)
PROJECT_ROOT = Path(__file__).resolve().parents[2]
if str(PROJECT_ROOT) not in sys.path:
    sys.path.insert(0, str(PROJECT_ROOT))

Only README.md remains in examples root. CI test discovery (rglob("*.py")) continues working unchanged.

Original prompt

This section details on the original issue you should resolve

<issue_title>examples folder</issue_title>
<issue_description>go over examples folder - re-organize so that there are no dangling .py files outside topic-specific folders. No new md allowed.</issue_description>

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 2 commits December 29, 2025 12:53
Co-authored-by: SkBlaz <10035780+SkBlaz@users.noreply.github.com>
Co-authored-by: SkBlaz <10035780+SkBlaz@users.noreply.github.com>
Copilot AI changed the title [WIP] Reorganize examples folder structure for clarity Reorganize examples folder: move dangling files to topic subdirectories Dec 29, 2025
Copilot AI requested a review from SkBlaz December 29, 2025 13:02
@SkBlaz SkBlaz marked this pull request as ready for review December 29, 2025 13:13
@SkBlaz SkBlaz merged commit d43e5ba into master Dec 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

examples folder

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.