Skip to content

Config merging changes in 0.5.9 broke the use of voila.json #1538

@ctcjab

Description

@ctcjab

The changes in 0.5.9 broke our use of voila.json.

You should be able to reproduce this with a Dockerfile like

FROM quay.io/jupyter/minimal-notebook@sha256:fa912aec1c8935c2422c9b14d02229ec3824d50cbe333c6faddedb0fb63af506
USER root
RUN conda install voila=0.5.9 jupytext=1.17.2
COPY voila.json /opt/conda/etc/jupyter/voila.json
USER ${NB_UID}:${NB_GID}

where voila.json contains

{
  "VoilaConfiguration": {
    "extension_language_mapping": {
      ".py": "python"
    }
  }

Start the container, create a Jupytext .py notebook, choose "Open with Voila in new browser tab", and observe that you are unable to render the .py notebook (i.e. the config above is not respected).

For now we have downgraded back to 0.5.8.

While we're waiting for the fix, is it possible to change how we're specifying our Voila config such that it will still work with the latest release? The https://voila.readthedocs.io/en/stable/customize.html documentation does not currently include a section on where Voila looks for configuration and how it is merged together, which is extra challenging given the recent changes here. Thanks for any help you can provide.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions