Skip to content

Commit 42109dd

Browse files
authored
Merge branch 'jupyter:main' into remove-bower
2 parents 7ceb14f + 5328e00 commit 42109dd

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

docs/environment.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: notebook_docs
1+
name: nbclassic_docs
22
channels:
33
- conda-forge
44
dependencies:
@@ -19,3 +19,5 @@ dependencies:
1919
- prometheus_client
2020
- sphinxcontrib_github_alt
2121
- ipython_genutils
22+
- jupyter_server>=1.8
23+
- notebook_shim>=0.1.0

nbclassic/__version__.py

Lines changed: 0 additions & 1 deletion
This file was deleted.

nbclassic/transutils.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
"""Translation related utilities. When imported, injects _ to builtins"""
2+
3+
# Copyright (c) Jupyter Development Team.
4+
# Distributed under the terms of the Modified BSD License.
5+
6+
import os
7+
import gettext
8+
9+
10+
# Set up message catalog access
11+
base_dir = os.path.realpath(os.path.join(__file__, '..', '..'))
12+
trans = gettext.translation('notebook', localedir=os.path.join(base_dir, 'notebook/i18n'), fallback=True)
13+
_ = trans.gettext

0 commit comments

Comments
 (0)