Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
prudhomm committed Sep 4, 2024
1 parent a5bde82 commit 83879ea
Show file tree
Hide file tree
Showing 5 changed files with 112 additions and 1,053 deletions.
1 change: 1 addition & 0 deletions docs/antora.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ version: ~
start_page: index.adoc
asciidoc:
attributes:
page-pagination: '@'
project_name: Course PrePost Processing
numbered: true
allow-uri-read: true
Expand Down
7 changes: 3 additions & 4 deletions docs/modules/ROOT/pages/env/jupyter.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ To run the notebook in an already install jupyter

You can include code cells in your notebook using the `[source,python]` block macro.

[%dynamic,python]
[%dynamic%open,python]
----
import sys, os
print("Hello, world!")
Expand All @@ -38,22 +38,21 @@ print("Hello, world!")

You can check that `pyvista` package is running as expected:

[%dynamic,python]
[source,python]
----
import pyvista as pv
# uncomment the next line, if you don't have a nvidia graphic card
# pv.start_xvfb()
mesh = pv.Plane().triangulate()
submesh = mesh.subdivide(2, 'linear')
submesh.plot(show_edges=True)
----

== {feelpp} Code cells

You can include {feelpp} code cells in your notebook using the `[source,python]` block macro.

[source,python]
[%dynamic%open,python]
----
import feelpp.core as fppc
app = fppc.Environment(["myapp"],config=fppc.globalRepository("myapp"))
Expand Down
Loading

0 comments on commit 83879ea

Please sign in to comment.