GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — ✨ `aiida`: PWD via @task and @graph by GeigerJ2 · Pull Request #222 · pythonworkflow/python-workflow-definition

Conversation

@GeigerJ2

@GeigerJ2 GeigerJ2 commented Nov 6, 2026

Copy link
Copy Markdown
Collaborator

Replace the workgraph adapter with generated @task/@graph source lowered to GraphIR; export GraphIR back to PWD. Static DAGs only. Pin aiida-core to current main.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@jan-janssen

jan-janssen commented Nov 6, 2026

Copy link
Copy Markdown
Member

@GeigerJ2 I fixed the pip installation, by adding it to the conda environment.

There are still parts in the notebooks which need to be updated:

Traceback (most recent call last):
  File "/home/runner/miniconda3/envs/test/bin/papermill", line 10, in <module>
    sys.exit(papermill())
             ^^^^^^^^^^^
  File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/click/core.py", line 1161, in __call__
    return self.main(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/click/core.py", line 1082, in main
    rv = self.invoke(ctx)
         ^^^^^^^^^^^^^^^^
  File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/click/core.py", line 1443, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/click/core.py", line 788, in invoke
    return __callback(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/click/decorators.py", line 33, in new_func
    return f(get_current_context(), *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/papermill/cli.py", line 235, in papermill
    execute_notebook(
  File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/papermill/execute.py", line 131, in execute_notebook
    raise_for_execution_errors(nb, output_path)
  File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/papermill/execute.py", line 251, in raise_for_execution_errors
    raise error
papermill.exceptions.PapermillExecutionError: 
---------------------------------------------------------------------------
Exception encountered at "In [9]":
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
Cell In[9], line 1
----> 1 wg.run()
AttributeError: 'GraphHandle' object has no attribute 'run'
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@GeigerJ2

GeigerJ2 commented Nov 6, 2026

Copy link
Copy Markdown
Collaborator Author

Cheers @jan-janssen, thanks for adding the commit on top! This is still very vibey, yes, wg.run should not be there anymore... 😅

jan-janssen reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@codecov

codecov Bot commented Nov 6, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 82.93651% with 43 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/python_workflow_definition/aiida.py 82.93% 43 Missing ⚠️

📢 Thoughts on this report? Let us know!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@GeigerJ2
GeigerJ2 marked this pull request as draft November 6, 2026 11:46
@GeigerJ2
GeigerJ2 force-pushed the feature/aiida-core-graph-adapter branch 4 times, most recently from a2399b0 to 4c55e5c Compare November 6, 2026 15:03
@GeigerJ2
✨ aiida: rewrite adapter on @task/@graph
283239e
The workgraph package is retired. The adapter now
emits `@task` and `@graph` source, loads it through
`GraphHandle`, and runs it with `run_get_node`.
Notebooks define the workflows with the new decorators.
Dependencies pin `aiida-core` to a fixed commit.
@GeigerJ2
GeigerJ2 force-pushed the feature/aiida-core-graph-adapter branch from 69e2772 to 283239e Compare November 6, 2026 16:09
@GeigerJ2
🐛 notebooks: show aiida outputs in qe universal
5aa2b8b
@jan-janssen

jan-janssen commented Nov 6, 2026

Copy link
Copy Markdown
Member

@GeigerJ2 looks great to me. Once an official core version is released I am happy to merge this, I am a bit reluctant to bind to the main branch as that might change in the future and break our tests.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@GeigerJ2

GeigerJ2 commented Nov 20, 2026

Copy link
Copy Markdown
Collaborator Author

Hi @jan-janssen, sure, i understand the concern. We are also currently very actively working on the feature inside aiida-core itself, so, it's still quite unstable. Though, it should be fine when we pin aiida-core to a specific commit here, then tests won't suddenly break as our branch advances.

I do not want to integrate future PWD changes with the aiida-workgraph code here, as that won't be the way to go forward for us. So, I'm OK, to keep this PR open and work off of the branch for now and keep rebasing it with other changes along the way. An actual v3 release on our side is still going to take a while, so let's see how it goes.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@GeigerJ2 GeigerJ2 mentioned this pull request Nov 23, 2026
♻️ notebooks: use Python sources #225
Draft

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@GeigerJ2 @jan-janssen
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.