Running quarto in singularity #2559
Replies: 4 comments 15 replies
-
Would you have a working reproducible example? Main default difference between Docker and Singularity is that Docker is using |
Beta Was this translation helpful? Give feedback.
-
the call to singularity was My image was build as I found a work-around the issue with a slightly different call: I will try to upload a (small) reproducible image to docker hub as soon as I can. test_quarto_py.qmd is ---
title: "Quarto Basics"
format:
html:
code-fold: true
jupyter: python3
---
For a demonstration of a line plot on a polar axis, see @fig-polar.
```{python}
#| label: fig-polar
#| fig-cap: "A line plot on a polar axis"
import numpy as np
import matplotlib.pyplot as plt
r = np.arange(0, 2, 0.01)
theta = 2 * np.pi * r
fig, ax = plt.subplots(
subplot_kw = {'projection': 'polar'}
)
ax.plot(theta, r)
ax.set_rticks([0.5, 1, 1.5, 2])
ax.grid(True)
plt.show() |
Beta Was this translation helpful? Give feedback.
-
Hi, I was able to make it running by binding the folder :
Hope it'll help ;-) |
Beta Was this translation helpful? Give feedback.
-
If you are running into errors such as export XDG_CACHE_HOME=/tmp/quarto_cache_home
export XDG_DATA_HOME=/tmp/quarto_data_home
quarto render report.qmd Note: A writeable directory is usually mounted into |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I use singularity containers for many projects. I tested quarto with python from within one such container with the python example from here
singularity exec ./my_image quarto render tests_quarto_py.qmd --to html
I get the following error:
ERROR: Read-only file system (os error 30), mkdir '/run/user/1000/jt'
Jupyter notebook works fine from the same singularity container and the command works fine if using docker. The issue seems to be that the file system of Singularity is read-only (if not in specific locations).
Is there a way to tell quarto not to use the standard
/run/user/1000/jt
? An option to specify the folder to somewhere writable?Thanks
Beta Was this translation helpful? Give feedback.
All reactions