Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix syntax error in jupyter-server-config Python file #2286

Merged
merged 8 commits into from
Mar 5, 2024
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,21 @@ locals {
resource "local_file" "jupyter_server_config_py" {
content = local.jupyter-notebook-config-py-template
filename = "${path.module}/files/jupyter/jupyter_server_config.py"

provisioner "local-exec" {
# check the syntax of the config file without running it
command = "python -m py_compile ${self.filename}"
krassowski marked this conversation as resolved.
Show resolved Hide resolved
}
}

resource "local_file" "jupyter_jupyterlab_pioneer_config_py" {
content = local.jupyter-pioneer-config-py-template
filename = "${path.module}/files/jupyter/jupyter_jupyterlab_pioneer_config.py"

provisioner "local-exec" {
# check the syntax of the config file without running it
command = "python -m py_compile ${self.filename}"
}
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import json


default_log_format = "%(asctime)s %(levelname)9s %(lineno)4s %(module)s: %(message)s"
log_format = ${log_format}
log_format = "${log_format}"

logging.basicConfig(
level=logging.INFO,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,12 @@

# Extra config available at:
# https://zero-to-jupyterhub.readthedocs.io/en/1.x/jupyterhub/customizing/user-management.html#culling-user-pods

# Enable Show Hidden Files menu option in View menu
c.ContentsManager.allow_hidden = True
c.FileContentsManager.allow_hidden = True

# Set the preferred path for the frontend to start in
preferred_dir = ${jupyterlab_preferred_dir}
c.FileContentsManager.preferred_dir = preferred_dir if preferred_dir else None
c.FileContentsManager.preferred_dir = "${jupyterlab_preferred_dir}"

# Timeout (in seconds) in which a terminal has been inactive and ready to
# be culled.
Expand Down
Loading