Skip to content

Fix examples#876

Merged
jourdain merged 32 commits intoKitware:masterfrom
UlysseDurand:fix-examples2
Apr 16, 2026
Merged

Fix examples#876
jourdain merged 32 commits intoKitware:masterfrom
UlysseDurand:fix-examples2

Conversation

@UlysseDurand
Copy link
Copy Markdown
Contributor

Fix examples that didn't work.

The remaining examples I didn't manage to run are the following:

Apart from these, all the examples and their features were tested.

Comment thread examples/03_markdown/01_markdown.py Outdated
Comment thread examples/03_markdown/sample.md
Comment thread examples/03_markdown/sample.md
Comment thread examples/07_paraview/Docker/Dockerfile Outdated
Comment thread examples/07_paraview/SimpleCone/LocalRendering.py Outdated
Comment thread examples/07_paraview/TimeAnimation/car-crash.json
Comment thread examples/deploy/docker/RenderingInfo/README.md Outdated
Copy link
Copy Markdown
Contributor Author

@UlysseDurand UlysseDurand left a comment

Choose a reason for hiding this comment

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

Some markdown problems persist, I will see later.
I fixed some examples thanks to your comments.

Comment thread examples/03_markdown/sample.md
Comment thread examples/03_markdown/sample.md
Comment thread examples/07_paraview/Docker/Dockerfile Outdated
Comment thread examples/07_paraview/SimpleCone/LocalRendering.py Outdated
Comment thread examples/deploy/docker/RenderingInfo/README.md Outdated
Comment thread examples/03_markdown/01_markdown.py Outdated
Also replace all mentions of commands like `[pvpython] [script.py] --venv
[venv]` by `[pvpython] --venv [venv] [script.py]`
Comment thread examples/03_markdown/01_markdown.py Outdated
Comment thread examples/07_paraview/README.md Outdated
@jourdain
Copy link
Copy Markdown
Collaborator

Getting closer, ok to merge after another pass based on my comments.

UlysseDurand added a commit to UlysseDurand/trame that referenced this pull request Apr 16, 2026
Copy link
Copy Markdown
Contributor Author

@UlysseDurand UlysseDurand left a comment

Choose a reason for hiding this comment

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

Comments should be now resolved

Comment thread examples/07_paraview/README.md Outdated
Comment thread examples/02_vuetify/00_dataframe-table.py Outdated
Comment thread examples/02_vuetify/00_dataframe-table-vue3.py
@@ -1,4 +1,3 @@
import paraview.web.venv # Available in PV 5.10
from paraview import simple
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Do you want to update it to a TrameApp and vue3?


# -----------------------------------------------------------------------------

server = get_server(client_type="vue3")
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

TrameApp?

import paraview.web.venv # Available in PV 5.11
from paraview import simple

from trame.app import get_server
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

TrameApp?


from trame.app import get_server
from trame.ui.vuetify import SinglePageLayout
from trame.widgets import paraview, vuetify
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

vue3?


from trame.app import get_server
from trame.ui.vuetify import SinglePageLayout
from trame.widgets import client, paraview, vuetify
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

TrameApp / vue3?

from trame_server import Server
from trame_server.controller import Controller

from trame.app import get_server
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

TrameApp (class not decorator) and use v3 as name instead of vuetify.

import paraview.web.venv # Available in PV 5.10-RC2+
from paraview import simple

from trame.app import asynchronous, get_server
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

TrameApp + vue3/v3

import paraview.web.venv
from paraview import simple

from trame.app import asynchronous, get_server
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

TrameApp + v3?

Comment thread examples/07_paraview/README.md Outdated
python3.9 -m venv .pvenv
python3.12 -m venv .pvenv
source .pvenv/bin/activate
pip install trame>=2.0.0
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

update version of trame here...

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

# -----------------------------------------------------------------------------
from paraview import simple

from trame.app import get_server
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

TrameApp

from trame.ui.router import RouterViewLayout
from trame.ui.vuetify3 import SinglePageWithDrawerLayout
from trame.widgets import plotly, router
from trame.widgets import vuetify3 as vuetify
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

as v3

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

If you can, use TrameApp too

@jourdain
Copy link
Copy Markdown
Collaborator

If you want to get that merge, my comments coulld be tackled in another PR. I'm ok merging it as-is.

Copy link
Copy Markdown
Contributor Author

@UlysseDurand UlysseDurand left a comment

Choose a reason for hiding this comment

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

Yes I would like to make this PR and update all the examples with TrameApp in another PR, thank you.

Comment thread examples/07_paraview/README.md Outdated
python3.9 -m venv .pvenv
python3.12 -m venv .pvenv
source .pvenv/bin/activate
pip install trame>=2.0.0
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@jourdain jourdain merged commit 4d63772 into Kitware:master Apr 16, 2026
6 checks passed
jourdain pushed a commit that referenced this pull request Apr 16, 2026
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.

2 participants