-
Notifications
You must be signed in to change notification settings - Fork 148
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #276 from krassowski/krassowski-update-docs-versions
Update the recommended JupyterLab version
- Loading branch information
Showing
11 changed files
with
148 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
from IPython.core.magic import needs_local_scope, register_cell_magic | ||
from IPython.display import Markdown | ||
|
||
|
||
@register_cell_magic | ||
@needs_local_scope | ||
def markdown(line, cell, local_ns): | ||
"""Cell interpreted as Markdown but with variable substitution support. | ||
Variables from global environment will be substituted using the standard | ||
Python format mechanism which uses single curly braces (e.g. {variable}) | ||
""" | ||
return Markdown(cell.format(**local_ns)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# the version of jupyterlab | ||
-r ./prod.txt | ||
jupyterlab >=2,<3.0.0a0 | ||
jupyterlab >=2.1.0,<3.0.0a0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import json | ||
from pathlib import Path | ||
from re import findall | ||
|
||
ROOT = Path(__file__).resolve().parent | ||
|
||
|
||
_VERSION_PY = ROOT / "py_src" / "jupyter_lsp" / "_version.py" | ||
JUPYTER_LSP_VERSION = findall(r'= "(.*)"$', (_VERSION_PY).read_text())[0] | ||
|
||
with open(ROOT / "packages/jupyterlab-lsp/package.json") as f: | ||
jupyterlab_lsp_package = json.load(f) | ||
|
||
JUPYTERLAB_LSP_VERSION = jupyterlab_lsp_package['version'] | ||
JUPYTERLAB_VERSION = ( | ||
jupyterlab_lsp_package | ||
['devDependencies'] | ||
['@jupyterlab/application'] | ||
.lstrip('~^') | ||
) | ||
JUPYTERLAB_NEXT_MAJOR_VERSION = int(JUPYTERLAB_VERSION.split('.')[0]) + 1 | ||
REQUIRED_JUPYTERLAB = f'>={JUPYTERLAB_VERSION},<{JUPYTERLAB_NEXT_MAJOR_VERSION}.0.0a0' |