Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
377bd5e
Added example for estimating parameters of Kalman filter and inferrin…
ncguilbeault Oct 6, 2025
9d13ab9
Added an example to perform online filtering
ncguilbeault Oct 7, 2025
0893777
Updated `toc.yml` in examples with item lists for improved readability
ncguilbeault Oct 10, 2025
7895add
Removed `README.md` from LinearDynamicalSystems examples folder since…
ncguilbeault Oct 10, 2025
fe2378c
Updated download data script to acquire both training and testing dat…
ncguilbeault Oct 13, 2025
b0d2c46
Updated `OnlineFiltering` example to load Kalman filter parameters tr…
ncguilbeault Oct 13, 2025
a95e88e
Updated name of dataset to load
ncguilbeault Oct 13, 2025
04a1fff
Updated READMEs of examples with updated references to training and t…
ncguilbeault Oct 13, 2025
d290eb5
Added command line parsing to training model script
ncguilbeault Oct 13, 2025
7cbf322
Added example for training a model in Bonsai and saving to disk, foll…
ncguilbeault Oct 14, 2025
9da6481
Updated README
ncguilbeault Oct 14, 2025
36cd693
Updated examples in line with new package naming
ncguilbeault Oct 28, 2025
99d70d6
Adding example workflows to work with latest changes to package
ncguilbeault Oct 31, 2025
073d8f7
Updated model training script to save model parameters in a way that …
ncguilbeault Oct 31, 2025
cc53118
Updated examples
ncguilbeault Oct 31, 2025
ce910d4
Updated bonsai configs to match release candidate
ncguilbeault Oct 31, 2025
93b69f9
Updating Bonsai.config to remove dev packages
ncguilbeault Nov 1, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
103 changes: 57 additions & 46 deletions docs/toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,55 +2,66 @@
href: ../README.md

- name: Linear Dynamical Systems
- name: Getting Started
href: ../examples/LinearDynamicalSystems/README.md
- name: Kinematics
- name: Simulated Data
href: ../examples/LinearDynamicalSystems/Kinematics/SimulatedData/README.md
- name: Zebrafish Centroid Tracking
href: ../examples/LinearDynamicalSystems/Kinematics/ZebrafishCentroidTracking/README.md
- name: Foraging Mouse
href: ../examples/LinearDynamicalSystems/Kinematics/ForagingMouse/README.md
- name: Optimizing Model Parameters for Foraging Mouse
href: ../examples/LinearDynamicalSystems/Kinematics/ModelOptimizationForagingMouse/README.md
- name: Forecasting Foraging Mouse Kinematics
href: ../examples/LinearDynamicalSystems/Kinematics/ForecastingForagingMouse/README.md
- name: Linear Regression
- name: Simulated Data
href: ../examples/LinearDynamicalSystems/LinearRegression/SimulatedData/README.md
- name: Receptive Field Simple Cell
href: ../examples/LinearDynamicalSystems/LinearRegression/ReceptiveFieldSimpleCell/README.md

items:
- name: Kinematics
items:
- name: Simulated Data
href: ../examples/LinearDynamicalSystems/Kinematics/SimulatedData/README.md
- name: Zebrafish Centroid Tracking
href: ../examples/LinearDynamicalSystems/Kinematics/ZebrafishCentroidTracking/README.md
- name: Foraging Mouse
href: ../examples/LinearDynamicalSystems/Kinematics/ForagingMouse/README.md
- name: Optimizing Model Parameters for Foraging Mouse
href: ../examples/LinearDynamicalSystems/Kinematics/ModelOptimizationForagingMouse/README.md
- name: Forecasting Foraging Mouse Kinematics
href: ../examples/LinearDynamicalSystems/Kinematics/ForecastingForagingMouse/README.md
- name: Linear Regression
items:
- name: Simulated Data
href: ../examples/LinearDynamicalSystems/LinearRegression/SimulatedData/README.md
- name: Receptive Field Simple Cell
href: ../examples/LinearDynamicalSystems/LinearRegression/ReceptiveFieldSimpleCell/README.md
- name: Neural Latents
items:
- name: Estimating Parameters of LDS
href: ../examples/LinearDynamicalSystems/NeuralLatents/EstimatingParameters/README.md
- name: Online Filtering
href: ../examples/LinearDynamicalSystems/NeuralLatents/OnlineFiltering/README.md

- name: Hidden Markov Models
- name: Getting Started
href: ../examples/HiddenMarkovModels/README.md
- name: Simulated Data
href: ../examples/HiddenMarkovModels/SimulatedData/README.md
- name: Inferring Behavioral State from Kinematics
href: ../examples/HiddenMarkovModels/InferringBehavioralStateFromKinematics/README.md
- name: Extended Model Configuration
href: ../examples/HiddenMarkovModels/ExtendedModelConfiguration/README.md
items:
- name: Getting Started
href: ../examples/HiddenMarkovModels/README.md
- name: Simulated Data
href: ../examples/HiddenMarkovModels/SimulatedData/README.md
- name: Inferring Behavioral State from Kinematics
href: ../examples/HiddenMarkovModels/InferringBehavioralStateFromKinematics/README.md
- name: Extended Model Configuration
href: ../examples/HiddenMarkovModels/ExtendedModelConfiguration/README.md

- name: Torch
- name: Linear Regression
href: ../examples/Torch/LinearRegression/README.md
items:
- name: Linear Regression
href: ../examples/Torch/LinearRegression/README.md

- name: Torch Models
- name: Custom PyTorch Model
href: ../examples/Torch/CustomPyTorchModel/README.md
- name: Pretrained Neural Network for Image Classification
href: ../examples/Torch/NeuralNetsPretrainedModel/README.md
- name: Downloading and Running a TorchHub Model
href: ../examples/Torch/NeuralNetsTorchHub/README.md
- name: Training a Neural Network Online
href: ../examples/Torch/NeuralNetsTrainedOnline/README.md
- name: Neural Networks
items:
- name: Exporting a PyTorch Model
href: ../examples/Torch/CustomPyTorchModel/README.md
- name: Running a Pretrained Neural Network for Image Classification
href: ../examples/Torch/NeuralNetsPretrainedModel/README.md
- name: Downloading and Running a TorchHub Model
href: ../examples/Torch/NeuralNetsTorchHub/README.md
- name: Training a Neural Network Online
href: ../examples/Torch/NeuralNetsTrainedOnline/README.md

- name: Point Process Decoder
- name: Decode Position from Hippocampus using Sorted Spikes
href: ../examples/PointProcessDecoder/DecodePositionFromHippocampusSortedUnits/README.md
- name: Decode Position from Hippocampus using Clusterless Marks
href: ../examples/PointProcessDecoder/DecodePositionFromHippocampusClusterless/README.md
- name: Decode Position from Striatum using Sorted Spikes
href: ../examples/PointProcessDecoder/DecodePositionFromStriatumSortedUnits/README.md
- name: Classify Dynamics and Decode Position from Hippocampal Sorted Units
href: ../examples/PointProcessDecoder/ClassifyPositionFromHippocampusSortedUnits/README.md
items:
- name: Decode Position from Hippocampus using Sorted Spikes
href: ../examples/PointProcessDecoder/DecodePositionFromHippocampusSortedUnits/README.md
- name: Decode Position from Hippocampus using Clusterless Marks
href: ../examples/PointProcessDecoder/DecodePositionFromHippocampusClusterless/README.md
- name: Decode Position from Striatum using Sorted Spikes
href: ../examples/PointProcessDecoder/DecodePositionFromStriatumSortedUnits/README.md
- name: Classify Dynamics and Decode Position from Hippocampal Sorted Units
href: ../examples/PointProcessDecoder/ClassifyPositionFromHippocampusSortedUnits/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
<?xml version="1.0" encoding="utf-8"?>
<PackageConfiguration xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Packages>
<Package id="Bonsai" version="2.9.0" />
<Package id="Bonsai.Core" version="2.9.0" />
<Package id="Bonsai.Design" version="2.9.0" />
<Package id="Bonsai.Design.Visualizers" version="2.9.0" />
<Package id="Bonsai.Dsp" version="2.9.0" />
<Package id="Bonsai.Editor" version="2.9.0" />
<Package id="Bonsai.ML" version="0.4.2-rc.1" />
<Package id="Bonsai.ML.Data" version="0.4.2-rc.1" />
<Package id="Bonsai.ML.Design" version="0.4.2-rc.1" />
<Package id="Bonsai.ML.Lds.Torch" version="0.4.2-rc.1" />
<Package id="Bonsai.ML.Lds.Torch.Design" version="0.4.2-rc.1" />
<Package id="Bonsai.ML.Torch" version="0.4.2-rc.1" />
<Package id="Bonsai.ML.Torch-cpu" version="0.4.2-rc.1" />
<Package id="Bonsai.Scripting.Expressions" version="2.9.0" />
<Package id="Bonsai.System" version="2.9.0" />
<Package id="DockPanelSuite" version="3.1.1" />
<Package id="DockPanelSuite.ThemeVS2015" version="3.1.1" />
<Package id="Google.Protobuf" version="3.21.9" />
<Package id="jacobslusser.ScintillaNET" version="3.6.3" />
<Package id="libtorch-cpu" version="2.5.1" />
<Package id="libtorch-cpu-linux-x64" version="2.5.1" />
<Package id="libtorch-cpu-osx-arm64" version="2.5.1" />
<Package id="libtorch-cpu-win-x64" version="2.5.1" />
<Package id="Markdig" version="0.41.1" />
<Package id="MathNet.Numerics" version="5.0.0" />
<Package id="Microsoft.Web.WebView2" version="1.0.2792.45" />
<Package id="Newtonsoft.Json" version="13.0.3" />
<Package id="OpenCV.Net" version="3.4.2" />
<Package id="OxyPlot.Core" version="2.1.2" />
<Package id="OxyPlot.WindowsForms" version="2.1.2" />
<Package id="Rx-Core" version="2.2.5" />
<Package id="Rx-Interfaces" version="2.2.5" />
<Package id="Rx-Linq" version="2.2.5" />
<Package id="Rx-PlatformServices" version="2.2.5" />
<Package id="SharpZipLib" version="1.4.0" />
<Package id="SkiaSharp" version="2.88.6" />
<Package id="SkiaSharp.NativeAssets.Linux.NoDependencies" version="2.88.6" />
<Package id="SkiaSharp.NativeAssets.macOS" version="2.88.6" />
<Package id="SkiaSharp.NativeAssets.Win32" version="2.88.6" />
<Package id="SvgNet" version="3.5.0" />
<Package id="System.Buffers" version="4.6.0" />
<Package id="System.Linq.Dynamic" version="1.0.7" />
<Package id="System.Memory" version="4.6.0" />
<Package id="System.Numerics.Vectors" version="4.6.0" />
<Package id="System.Resources.Extensions" version="8.0.0" />
<Package id="System.Runtime.CompilerServices.Unsafe" version="6.1.0" />
<Package id="System.Threading.Tasks.Extensions" version="4.5.2" />
<Package id="TorchSharp" version="0.105.0" />
<Package id="TorchVision" version="0.105.0" />
<Package id="YamlDotNet" version="16.3.0" />
<Package id="ZedGraph" version="5.1.7" />
</Packages>
<AssemblyReferences>
<AssemblyReference assemblyName="Bonsai" />
<AssemblyReference assemblyName="Bonsai.Core" />
<AssemblyReference assemblyName="Bonsai.Design" />
<AssemblyReference assemblyName="Bonsai.Design.Visualizers" />
<AssemblyReference assemblyName="Bonsai.Dsp" />
<AssemblyReference assemblyName="Bonsai.Editor" />
<AssemblyReference assemblyName="Bonsai.ML" />
<AssemblyReference assemblyName="Bonsai.ML.Data" />
<AssemblyReference assemblyName="Bonsai.ML.Design" />
<AssemblyReference assemblyName="Bonsai.ML.Lds.Torch" />
<AssemblyReference assemblyName="Bonsai.ML.Lds.Torch.Design" />
<AssemblyReference assemblyName="Bonsai.ML.Torch" />
<AssemblyReference assemblyName="Bonsai.Scripting.Expressions" />
<AssemblyReference assemblyName="Bonsai.System" />
</AssemblyReferences>
<AssemblyLocations>
<AssemblyLocation assemblyName="Bonsai" processorArchitecture="MSIL" location="Packages/Bonsai.2.9.0/lib/net48/Bonsai.exe" />
<AssemblyLocation assemblyName="Bonsai.Core" processorArchitecture="MSIL" location="Packages/Bonsai.Core.2.9.0/lib/net472/Bonsai.Core.dll" />
<AssemblyLocation assemblyName="Bonsai.Design" processorArchitecture="MSIL" location="Packages/Bonsai.Design.2.9.0/lib/net472/Bonsai.Design.dll" />
<AssemblyLocation assemblyName="Bonsai.Design.Visualizers" processorArchitecture="MSIL" location="Packages/Bonsai.Design.Visualizers.2.9.0/lib/net472/Bonsai.Design.Visualizers.dll" />
<AssemblyLocation assemblyName="Bonsai.Dsp" processorArchitecture="MSIL" location="Packages/Bonsai.Dsp.2.9.0/lib/net472/Bonsai.Dsp.dll" />
<AssemblyLocation assemblyName="Bonsai.Editor" processorArchitecture="MSIL" location="Packages/Bonsai.Editor.2.9.0/lib/net472/Bonsai.Editor.dll" />
<AssemblyLocation assemblyName="Bonsai.ML" processorArchitecture="MSIL" location="Packages/Bonsai.ML.0.4.2-rc.1/lib/net472/Bonsai.ML.dll" />
<AssemblyLocation assemblyName="Bonsai.ML.Data" processorArchitecture="MSIL" location="Packages/Bonsai.ML.Data.0.4.2-rc.1/lib/net472/Bonsai.ML.Data.dll" />
<AssemblyLocation assemblyName="Bonsai.ML.Design" processorArchitecture="MSIL" location="Packages/Bonsai.ML.Design.0.4.2-rc.1/lib/net472/Bonsai.ML.Design.dll" />
<AssemblyLocation assemblyName="Bonsai.ML.Lds.Torch" processorArchitecture="MSIL" location="Packages/Bonsai.ML.Lds.Torch.0.4.2-rc.1/lib/net472/Bonsai.ML.Lds.Torch.dll" />
<AssemblyLocation assemblyName="Bonsai.ML.Lds.Torch.Design" processorArchitecture="MSIL" location="Packages/Bonsai.ML.Lds.Torch.Design.0.4.2-rc.1/lib/net472/Bonsai.ML.Lds.Torch.Design.dll" />
<AssemblyLocation assemblyName="Bonsai.ML.Torch" processorArchitecture="MSIL" location="Packages/Bonsai.ML.Torch.0.4.2-rc.1/lib/net472/Bonsai.ML.Torch.dll" />
<AssemblyLocation assemblyName="Bonsai.Scripting.Expressions" processorArchitecture="MSIL" location="Packages/Bonsai.Scripting.Expressions.2.9.0/lib/net472/Bonsai.Scripting.Expressions.dll" />
<AssemblyLocation assemblyName="Bonsai.System" processorArchitecture="MSIL" location="Packages/Bonsai.System.2.9.0/lib/net472/Bonsai.System.dll" />
<AssemblyLocation assemblyName="Google.Protobuf" processorArchitecture="MSIL" location="Packages/Google.Protobuf.3.21.9/lib/net45/Google.Protobuf.dll" />
<AssemblyLocation assemblyName="ICSharpCode.SharpZipLib" processorArchitecture="MSIL" location="Packages/SharpZipLib.1.4.0/lib/netstandard2.0/ICSharpCode.SharpZipLib.dll" />
<AssemblyLocation assemblyName="Markdig" processorArchitecture="MSIL" location="Packages/Markdig.0.41.1/lib/net462/Markdig.dll" />
<AssemblyLocation assemblyName="MathNet.Numerics" processorArchitecture="MSIL" location="Packages/MathNet.Numerics.5.0.0/lib/net48/MathNet.Numerics.dll" />
<AssemblyLocation assemblyName="Microsoft.Web.WebView2.Core" processorArchitecture="MSIL" location="Packages/Microsoft.Web.WebView2.1.0.2792.45/lib/net462/Microsoft.Web.WebView2.Core.dll" />
<AssemblyLocation assemblyName="Microsoft.Web.WebView2.WinForms" processorArchitecture="MSIL" location="Packages/Microsoft.Web.WebView2.1.0.2792.45/lib/net462/Microsoft.Web.WebView2.WinForms.dll" />
<AssemblyLocation assemblyName="Microsoft.Web.WebView2.Wpf" processorArchitecture="MSIL" location="Packages/Microsoft.Web.WebView2.1.0.2792.45/lib/net462/Microsoft.Web.WebView2.Wpf.dll" />
<AssemblyLocation assemblyName="Newtonsoft.Json" processorArchitecture="MSIL" location="Packages/Newtonsoft.Json.13.0.3/lib/net45/Newtonsoft.Json.dll" />
<AssemblyLocation assemblyName="OpenCV.Net" processorArchitecture="MSIL" location="Packages/OpenCV.Net.3.4.2/lib/net462/OpenCV.Net.dll" />
<AssemblyLocation assemblyName="OxyPlot" processorArchitecture="MSIL" location="Packages/OxyPlot.Core.2.1.2/lib/net45/OxyPlot.dll" />
<AssemblyLocation assemblyName="OxyPlot.WindowsForms" processorArchitecture="MSIL" location="Packages/OxyPlot.WindowsForms.2.1.2/lib/net45/OxyPlot.WindowsForms.dll" />
<AssemblyLocation assemblyName="ScintillaNET" processorArchitecture="MSIL" location="Packages/jacobslusser.ScintillaNET.3.6.3/lib/net40/ScintillaNET.dll" />
<AssemblyLocation assemblyName="SkiaSharp" processorArchitecture="MSIL" location="Packages/SkiaSharp.2.88.6/lib/net462/SkiaSharp.dll" />
<AssemblyLocation assemblyName="SVG" processorArchitecture="MSIL" location="Packages/SvgNet.3.5.0/lib/net462/SVG.dll" />
<AssemblyLocation assemblyName="System.Buffers" processorArchitecture="MSIL" location="Packages/System.Buffers.4.6.0/lib/net462/System.Buffers.dll" />
<AssemblyLocation assemblyName="System.Linq.Dynamic" processorArchitecture="MSIL" location="Packages/System.Linq.Dynamic.1.0.7/lib/net40/System.Linq.Dynamic.dll" />
<AssemblyLocation assemblyName="System.Memory" processorArchitecture="MSIL" location="Packages/System.Memory.4.6.0/lib/net462/System.Memory.dll" />
<AssemblyLocation assemblyName="System.Numerics.Vectors" processorArchitecture="MSIL" location="Packages/System.Numerics.Vectors.4.6.0/lib/net462/System.Numerics.Vectors.dll" />
<AssemblyLocation assemblyName="System.Reactive.Core" processorArchitecture="MSIL" location="Packages/Rx-Core.2.2.5/lib/net45/System.Reactive.Core.dll" />
<AssemblyLocation assemblyName="System.Reactive.Interfaces" processorArchitecture="MSIL" location="Packages/Rx-Interfaces.2.2.5/lib/net45/System.Reactive.Interfaces.dll" />
<AssemblyLocation assemblyName="System.Reactive.Linq" processorArchitecture="MSIL" location="Packages/Rx-Linq.2.2.5/lib/net45/System.Reactive.Linq.dll" />
<AssemblyLocation assemblyName="System.Reactive.PlatformServices" processorArchitecture="MSIL" location="Packages/Rx-PlatformServices.2.2.5/lib/net45/System.Reactive.PlatformServices.dll" />
<AssemblyLocation assemblyName="System.Resources.Extensions" processorArchitecture="MSIL" location="Packages/System.Resources.Extensions.8.0.0/lib/net462/System.Resources.Extensions.dll" />
<AssemblyLocation assemblyName="System.Runtime.CompilerServices.Unsafe" processorArchitecture="MSIL" location="Packages/System.Runtime.CompilerServices.Unsafe.6.1.0/lib/net462/System.Runtime.CompilerServices.Unsafe.dll" />
<AssemblyLocation assemblyName="System.Threading.Tasks.Extensions" processorArchitecture="MSIL" location="Packages/System.Threading.Tasks.Extensions.4.5.2/lib/netstandard2.0/System.Threading.Tasks.Extensions.dll" />
<AssemblyLocation assemblyName="TorchSharp" processorArchitecture="MSIL" location="Packages/TorchSharp.0.105.0/lib/netstandard2.0/TorchSharp.dll" />
<AssemblyLocation assemblyName="TorchVision" processorArchitecture="MSIL" location="Packages/TorchVision.0.105.0/lib/netstandard2.0/TorchVision.dll" />
<AssemblyLocation assemblyName="WeifenLuo.WinFormsUI.Docking" processorArchitecture="MSIL" location="Packages/DockPanelSuite.3.1.1/lib/net40/WeifenLuo.WinFormsUI.Docking.dll" />
<AssemblyLocation assemblyName="WeifenLuo.WinFormsUI.Docking.ThemeVS2015" processorArchitecture="MSIL" location="Packages/DockPanelSuite.ThemeVS2015.3.1.1/lib/net40/WeifenLuo.WinFormsUI.Docking.ThemeVS2015.dll" />
<AssemblyLocation assemblyName="YamlDotNet" processorArchitecture="MSIL" location="Packages/YamlDotNet.16.3.0/lib/net47/YamlDotNet.dll" />
<AssemblyLocation assemblyName="ZedGraph" processorArchitecture="MSIL" location="Packages/ZedGraph.5.1.7/lib/net35-Client/ZedGraph.dll" />
</AssemblyLocations>
<LibraryFolders>
<LibraryFolder path="Packages/libtorch-cpu-win-x64.2.5.1/runtimes/win-x64/native" platform="x64" />
<LibraryFolder path="Packages/Microsoft.Web.WebView2.1.0.2792.45/runtimes/win-arm64/native" platform="arm64" />
<LibraryFolder path="Packages/Microsoft.Web.WebView2.1.0.2792.45/runtimes/win-arm64/native_uap" platform="arm64" />
<LibraryFolder path="Packages/Microsoft.Web.WebView2.1.0.2792.45/runtimes/win-x64/native" platform="x64" />
<LibraryFolder path="Packages/Microsoft.Web.WebView2.1.0.2792.45/runtimes/win-x64/native_uap" platform="x64" />
<LibraryFolder path="Packages/Microsoft.Web.WebView2.1.0.2792.45/runtimes/win-x86/native" platform="x86" />
<LibraryFolder path="Packages/Microsoft.Web.WebView2.1.0.2792.45/runtimes/win-x86/native_uap" platform="x86" />
<LibraryFolder path="Packages/OpenCV.Net.3.4.2/runtimes/win-x64/native/vc14/bin" platform="x64" />
<LibraryFolder path="Packages/OpenCV.Net.3.4.2/runtimes/win-x86/native/vc14/bin" platform="x86" />
<LibraryFolder path="Packages/SkiaSharp.NativeAssets.Win32.2.88.6/runtimes/win-arm64/native" platform="arm64" />
<LibraryFolder path="Packages/SkiaSharp.NativeAssets.Win32.2.88.6/runtimes/win-x64/native" platform="x64" />
<LibraryFolder path="Packages/SkiaSharp.NativeAssets.Win32.2.88.6/runtimes/win-x86/native" platform="x86" />
<LibraryFolder path="Packages/TorchSharp.0.105.0/runtimes/win-x64/native" platform="x64" />
</LibraryFolders>
</PackageConfiguration>
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
</packageSources>
</configuration>
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
Push-Location $PSScriptRoot
if (!(Test-Path "./Bonsai.exe")) {
$release = "https://github.com/bonsai-rx/bonsai/releases/latest/download/Bonsai.zip"
$configPath = "./Bonsai.config"
if (Test-Path $configPath) {
[xml]$config = Get-Content $configPath
$bootstrapper = $config.PackageConfiguration.Packages.Package.where{$_.id -eq 'Bonsai'}
if ($bootstrapper) {
$version = $bootstrapper.version
$release = "https://github.com/bonsai-rx/bonsai/releases/download/$version/Bonsai.zip"
}
}
Invoke-WebRequest $release -OutFile "temp.zip"
Move-Item -Path "NuGet.config" "temp.config" -ErrorAction SilentlyContinue
Expand-Archive "temp.zip" -DestinationPath "." -Force
Move-Item -Path "temp.config" "NuGet.config" -Force -ErrorAction SilentlyContinue
Remove-Item -Path "temp.zip"
Remove-Item -Path "Bonsai32.exe"
}
& .\Bonsai.exe --no-editor
Pop-Location
Loading