Skip to content

Commit 212e022

Browse files
authored
Merge branch 'InsightSoftwareConsortium:main' into main
2 parents 5f8dd3d + 113b147 commit 212e022

File tree

134 files changed

+539
-260
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

134 files changed

+539
-260
lines changed

docs/cxx/tutorial/index.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ This tutorial will walk you through the process of *creating WebAssembly scienti
1010
6. Handle non-trivial data types a the wasm pipeline interface.
1111
7. Debug a wasm pipeline.
1212

13+
This [Jupyter notebook
14+
tutorial](https://github.com/InsightSoftwareConsortium/ScientificImageAnalysisVisualizationAndArtificialIntelligenceCourse/blob/master/10_Create_Scientific_WebAssembly_Pipelines.ipynb) also provides an interactive walkthrough.
15+
1316
```{toctree}
1417
:maxdepth: 2
1518
:caption: 📖 Tutorial Steps
@@ -18,4 +21,4 @@ hello_world.md
1821
hello_pipeline.md
1922
inputs_outputs.md
2023
debugging.md
21-
```
24+
```

docs/python/introduction.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ At a system level, Linux, macOS, and Windows operating systems are supported on
1414

1515
`itkwasm` Python packages are *highly modular*, have *a tiny footprint*, and have *minimal dependencies*; they only depend on `itkwasm`, `numpy`, and `pyodide` or `wasmtime` {octicon}`container`.
1616

17+
This [Jupyter notebook
18+
tutorial](https://github.com/InsightSoftwareConsortium/ScientificImageAnalysisVisualizationAndArtificialIntelligenceCourse/blob/master/9_WebAssembly_Introduction.ipynb)
19+
provides further background information and related hands-on experiences.
20+
1721
## Environment dispatch
1822

1923
There is a primary, pip-installable Python package. In browser environments, this will pull a corresponding [Emscripten](https://emscripten.org)-enabled Python package. For system Python distributions, this will bring in a corresponding [WASI](https://wasi.dev)-enabled Python package. When GPU-accelerated implementations of functions are available in other packages along with required hardware and software, simply pip-installing the accelerator package will cause function calls to invoke accelerated overrides registered with modern [package metadata](https://packaging.python.org/en/latest/guides/creating-and-discovering-plugins/#using-package-metadata).

examples/inputs-outputs/typescript/package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"name": "inputs-outputs-example",
2+
"name": "@itk-wasm/inputs-outputs-example",
33
"version": "0.1.0",
44
"packageManager": "pnpm@8.11.0",
5-
"description": "Zstandard compression and decompression and base64 encoding and decoding in WebAssembly.",
5+
"description": "An example that has non-trivial inputs and outputs.",
66
"type": "module",
77
"bin": "src/cli.mjs",
88
"module": "./dist/index.js",
@@ -22,7 +22,8 @@
2222
"build": "pnpm build:tsc && pnpm build:browser:workerEmbedded && pnpm build:browser:workerEmbeddedMin && pnpm build:demo",
2323
"build:browser:workerEmbedded": "esbuild --loader:.worker.js=dataurl --bundle --format=esm --outfile=./dist/bundle/index-worker-embedded.js ./src/index-worker-embedded.ts",
2424
"build:browser:workerEmbeddedMin": "esbuild --minify --loader:.worker.js=dataurl --bundle --format=esm --outfile=./dist/bundle/index-worker-embedded.min.js ./src/index-worker-embedded.min.ts",
25-
"build:tsc": "tsc --pretty",
25+
"build:version": "node -p \"'const version = ' + JSON.stringify(require('./package.json').version) + '\\nexport default version\\n'\" > src/version.ts",
26+
"build:tsc": "pnpm build:version && tsc --pretty",
2627
"copyShoelaceAssets": "shx mkdir -p test/browser/demo-app/public && shx cp -r node_modules/@shoelace-style/shoelace/dist/assets test/browser/demo-app/public/",
2728
"build:demo": "pnpm copyShoelaceAssets && vite build"
2829
},

examples/mean-squares-versor-registration/typescript/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
"build": "pnpm build:tsc && pnpm build:browser:workerEmbedded && pnpm build:browser:workerEmbeddedMin && pnpm build:demo",
2121
"build:browser:workerEmbedded": "esbuild --loader:.worker.js=dataurl --bundle --format=esm --outfile=./dist/bundle/index-worker-embedded.js ./src/index-worker-embedded.ts",
2222
"build:browser:workerEmbeddedMin": "esbuild --minify --loader:.worker.js=dataurl --bundle --format=esm --outfile=./dist/bundle/index-worker-embedded.min.js ./src/index-worker-embedded.min.ts",
23-
"build:tsc": "tsc --pretty",
23+
"build:version": "node -p \"'const version = ' + JSON.stringify(require('./package.json').version) + '\\nexport default version\\n'\" > src/version.ts",
24+
"build:tsc": "pnpm build:version && tsc --pretty",
2425
"copyShoelaceAssets": "shx mkdir -p test/browser/demo-app/public && shx cp -r node_modules/@shoelace-style/shoelace/dist/assets test/browser/demo-app/public/",
2526
"build:demo": "pnpm copyShoelaceAssets && vite build"
2627
},

packages/compare-images/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
typescript/demo-app/
2+
typescript/src/version.ts
23
dist/
34
test/
45
package-lock.json

packages/compare-images/python/itkwasm-compare-images-emscripten/itkwasm_compare_images_emscripten/js_package.py

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

packages/compare-images/typescript/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@
2828
"build": "pnpm build:tsc && pnpm build:browser:workerEmbedded && pnpm build:browser:workerEmbeddedMin && pnpm build:demo",
2929
"build:browser:workerEmbedded": "esbuild --loader:.worker.js=dataurl --bundle --format=esm --outfile=./dist/bundle/index-worker-embedded.js ./src/index-worker-embedded.ts",
3030
"build:browser:workerEmbeddedMin": "esbuild --minify --loader:.worker.js=dataurl --bundle --format=esm --outfile=./dist/bundle/index-worker-embedded.min.js ./src/index-worker-embedded.min.ts",
31-
"build:tsc": "tsc --pretty",
31+
"build:tsc": "pnpm build:version && tsc --pretty",
32+
"build:version": "node -p \"'const version = ' + JSON.stringify(require('./package.json').version) + '\\nexport default version\\n'\" > src/version.ts",
3233
"copyShoelaceAssets": "shx mkdir -p test/browser/demo-app/public && shx cp -r node_modules/@shoelace-style/shoelace/dist/assets test/browser/demo-app/public/",
3334
"build:demo": "pnpm copyShoelaceAssets && vite build"
3435
},
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// Generated file. To retain edits, remove this comment.
22

3+
export { default as version } from './version.js'
34

45
export type { Image } from 'itk-wasm'
56
export type { JsonCompatible } from 'itk-wasm'

0 commit comments

Comments
 (0)