-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Labels
Description
Here is a small Quarto notebook that tries to execute the example from the OMJulia documentation:
---
title: openmodelica_quarto
engine: Julia
---
```{julia}
#import Pkg; Pkg.add("OMJulia")
using OMJulia
using OMJulia.API: API
```
Calling `OMCSession` hangs the render/preview but works normally when running the cell from VS Code
```{julia}
omc = OMJulia.OMCSession();
```
The following cell is never exucuted:
```{julia}
installDir = sendExpression(omc, "getInstallationDirectoryPath()")
```
When rendering/previewing on Windows the execution hangs on the second cell so the notebook never finishes rendering.
openmodelica_quarto> quarto preview index.qmd
Starting julia control server process. This might take a while...
Julia server process started.
Running [1/3] at line 10: using OMJulia
Running [2/3] at line 17: omc = OMJulia.OMCSession();
It was tested on the following environment:
- Windows 11
- Julia 1.11.6
- Quarto 1.8.17 & 1.7.32
- OpenModelica 1.25.1
The notebook renders normally on Linux (standard Ubuntu runner from Github Actions).
I was in doubt between opening a ticket with QuartoNotebookRunner or OMJulia, I decided to open it here first because it only happens with Quarto.
N.b: it requires OpenModelica installed on the system (around 8Gb)