You can save that PowerShell command as a .ps1
(ps1) script file and run it on Windows using PowerShell.
Example
Save as a PowerShell Script
- Open a text editor (e.g., VS Code, Notepad++)
- Paste the code below into a new file:
$themes = "black", "white", "league", "beige", "sky", "night", "serif", "simple", "solarized", "blood", "moon"
foreach ($theme in $themes) {
jupyter nbconvert presentation.ipynb --to slides --SlidesExporter.reveal_theme=$theme --output "presentation_$theme"
}
- Save the file as:
convert-themes.ps1
How to Run the Script
- Open PowerShell
- Navigate to the script’s directory:
cd "C:\path\to\your\script"
- Run the script:
.\convert-themes.ps1