Skip to content

Commit

Permalink
Correct moving overrides, use warning instead of error
Browse files Browse the repository at this point in the history
  • Loading branch information
krassowski committed Feb 21, 2024
1 parent b295aa6 commit 80a6a24
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions binder/postBuild
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
python3 binder/postBuild
"""
import os
import subprocess
import sys
from pathlib import Path
Expand Down Expand Up @@ -42,8 +43,10 @@ _("jupyter", "server", "extension", "list")
# initially list installed extensions to determine if there are any surprises
_("jupyter", "labextension", "list")

_("mkdir", "-p", "$NB_PYTHON_PREFIX/share/jupyter/lab/settings/")
_("cp", "binder/overrides.json", "$NB_PYTHON_PREFIX/share/jupyter/lab/settings/")
# copy overrides.json to right location
NB_PYTHON_PREFIX = os.environ["NB_PYTHON_PREFIX"]
_("mkdir", "-p", f"{NB_PYTHON_PREFIX}/share/jupyter/lab/settings/")
_("cp", "binder/overrides.json", f"{NB_PYTHON_PREFIX}/share/jupyter/lab/settings/")

print("JupyterLab with jupyterlab_nebari_mode is ready to run with:\n")
print("\tjupyter lab\n")
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ const commandsPlugin: JupyterFrontEndPlugin<void> = {
serverSettings
);
if (!response.ok) {
console.error('Server proxy info not available');
console.warn('Server proxy info not available');
return;
}
const data = (await response.json()) as IServersInfo;
Expand Down

0 comments on commit 80a6a24

Please sign in to comment.