Skip to content

Commit 977aa81

Browse files
authored
Updates for 3.6 (#213)
1 parent 4cdf613 commit 977aa81

File tree

10 files changed

+2213
-1879
lines changed

10 files changed

+2213
-1879
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ jobs:
1515
- name: Install node
1616
uses: actions/[email protected]
1717
with:
18-
node-version: '14.x'
18+
node-version: '18.x'
1919
- name: Install Python
2020
uses: actions/[email protected]
2121
with:
22-
python-version: '3.8'
22+
python-version: '3.10'
2323
architecture: 'x64'
2424

2525

@@ -45,7 +45,7 @@ jobs:
4545
yarn-
4646
4747
- name: Install dependencies
48-
run: python -m pip install -U jupyter_packaging~=0.10.4 jupyterlab~=3.0.16 pip wheel
48+
run: python -m pip install -U jupyter_packaging~=0.12.3 jupyterlab~=3.6.3 pip wheel
4949
- name: Install the extension
5050
run: |
5151
set -eux

README.md

Lines changed: 49 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ For more advanced usage documentation, see [here](docs/advanced.md).
2525

2626
## Requirements
2727

28-
- JupyterLab >= 3.0
28+
- JupyterLab >= 3.6
2929
- older versions are supported in previous releases available on PyPI and npm, check [releases](https://github.com/jupyterlab/jupyterlab-latex/releases)
3030
- Python >= 3.6
3131
- An application that can compile `.tex` files to PDF (e.g., `pdflatex`, `xelatex`; use `pdflatex.exe` on Windows with MiKTeX). This application must be available as a command in the same environment as the notebook server.
@@ -112,6 +112,54 @@ For example, to force your LaTeX distribution to run any command, use:
112112
c.LatexConfig.shell_escape = "allow"
113113
```
114114

115+
## Contributing
116+
117+
If you would like to contribute to the project, please read our [contributor documentation](https://github.com/jupyterlab/jupyterlab/blob/master/CONTRIBUTING.md).
118+
119+
JupyterLab follows the official [Jupyter Code of Conduct](https://github.com/jupyter/governance/blob/master/conduct/code_of_conduct.md).
120+
121+
### Development install
122+
123+
Note: You will need NodeJS to build the extension package.
124+
125+
The `jlpm` command is JupyterLab's pinned version of
126+
[yarn](https://yarnpkg.com/) that is installed with JupyterLab. You may use
127+
`yarn` or `npm` in lieu of `jlpm` below.
128+
129+
To simplify the development setup, you can use the following Conda environment:
130+
131+
```
132+
conda create -n jupyterlab-latex-env -c conda-forge python=3.10 jupyterlab=3.6.3 jupyter_packaging=0.12.3 nodejs=18
133+
conda activate jupyterlab-latex-env
134+
```
135+
136+
```bash
137+
# Clone the repo to your local environment
138+
git clone https://github.com/jupyterlab/jupyterlab-latex.git
139+
# Change directory to the jupyterlab-latex directory
140+
cd jupyterlab-latex
141+
# Install package in development mode
142+
pip install -e .
143+
144+
# Link your development version of the extension with JupyterLab
145+
jupyter labextension develop . --overwrite
146+
# Server extension must be manually installed in develop mode
147+
jupyter server extension enable jupyterlab_latex
148+
# Rebuild extension Typescript source after making changes
149+
jlpm run build
150+
```
151+
152+
You can watch the source directory and run JupyterLab at the same time in different terminals to watch for changes in the extension's source and automatically rebuild the extension.
153+
154+
```bash
155+
# Watch the source directory in one terminal, automatically rebuilding when needed
156+
jlpm run watch
157+
# Run JupyterLab in another terminal
158+
jupyter lab
159+
```
160+
161+
With the watch command running, every saved change will immediately be built locally and available in your running JupyterLab. Refresh JupyterLab to load the change in your browser (you may need to wait several seconds for the extension to be rebuilt).
162+
115163
## Changes
116164

117165
For information on the changes with different versions of the `jupyterlab-latex` library, see our [changelog](./docs/changelog.md)

docs/advanced.md

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -26,39 +26,3 @@ in the JupyterLab advanced settings editor.
2626
The extension defaults to running `synctex` for establishing the mapping.
2727
You can configure this command by setting `c.LatexConfig.synctex_command`
2828
in your `jupyter_notebook_config.py` file.
29-
30-
## Installing from source
31-
32-
You can install from source in order to develop the extension.
33-
34-
From the `jupyterlab-latex` directory, enter the following into your terminal:
35-
36-
```bash
37-
pip install -e .
38-
```
39-
40-
Link your development version of the extension with JupyterLab
41-
42-
```bash
43-
jupyter labextension develop . --overwrite{% if cookiecutter.has_server_extension.lower().startswith('y') %}
44-
```
45-
46-
Server extension must be manually installed in develop mode
47-
48-
```bash
49-
jupyter server extension enable {{ cookiecutter.python_name }}{% endif %}
50-
```
51-
52-
Rebuild extension Typescript source after making changes
53-
54-
```bash
55-
jlpm run build
56-
```
57-
58-
You can build a Python wheel for testing the distribution
59-
60-
```bash
61-
python setup.py sdist bdist_wheel
62-
```
63-
64-
The wheel and the source archive will be created in `dist/` directory.

docs/changelog.md

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,50 @@
11
# Changelog for `jupyterlab_latex`
22

3-
- **3.1.0**:
3+
- **3.2.0**:
4+
5+
- Minimum supported JupyterLab is 3.6.0
6+
- Bump JS and Python dependencies
7+
- Fix build issues
8+
9+
* **3.1.0**:
410

511
- Switch to prebuilt (federated) extension model
612
- Fix bug with icons visibility in the dark theme
713

8-
- **3.0.0**:
14+
* **3.0.0**:
915

1016
- Update to JupyterLab 3.0
1117
- Add LaTeX file menu
1218
- Add download PDF button
1319

14-
- **v2.0.0**:
20+
* **v2.0.0**:
1521

1622
- Update to JupyterLab 2.0
1723

18-
- **v1.0.0**:
24+
* **v1.0.0**:
1925

2026
- Update to JupyterLab 1.0
2127

22-
- **0.6.1**:
28+
* **0.6.1**:
2329

2430
- Added a new page component allowing the user to navigate PDFs by page label.
2531

26-
- **0.6.0**:
32+
* **0.6.0**:
2733

2834
- Fixed a bug where the PDF would try to open if the initial build failed.
2935

30-
- **0.4.1**:
36+
* **0.4.1**:
3137

3238
- Allow SyncTeX to work on windows by using absolute file paths.
3339

34-
- **0.4.0**:
40+
* **0.4.0**:
3541

3642
- Allow SyncTeX to work on windows by using absolute file paths.
3743

38-
- **0.3.1**:
44+
* **0.3.1**:
3945

4046
- Bugfix for SyncTeX on Windows.
4147

42-
- **0.3.0**:
48+
* **0.3.0**:
4349
- New synctex functionality; server endpoints & front-end UI
4450
- New navigation UI for `PDFJSViewer`: zoom in/out, next/prev page, fit-to-pagewidth

jupyterlab_latex/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
"__version__",
77
"_jupyter_labextension_paths",
88
"_jupyter_server_extension_paths",
9-
"_jupyter_server_extension_points",
109
"_load_jupyter_server_extension",
1110
"load_jupyter_server_extension",
1211
]

package.json

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@jupyterlab/latex",
3-
"version": "3.1.0",
3+
"version": "3.2.0",
44
"description": "JupyterLab extension for running LaTeX",
55
"keywords": [
66
"jupyter",
@@ -56,20 +56,20 @@
5656
]
5757
},
5858
"dependencies": {
59-
"@jupyterlab/application": "^3.0.0",
60-
"@jupyterlab/apputils": "^3.0.0",
61-
"@jupyterlab/codeeditor": "^3.0.0",
59+
"@jupyterlab/application": "^3.6.0",
60+
"@jupyterlab/apputils": "^3.6.0",
61+
"@jupyterlab/codeeditor": "^3.6.0",
6262
"@jupyterlab/coreutils": "^5.0.0",
63-
"@jupyterlab/docmanager": "^3.0.0",
64-
"@jupyterlab/docregistry": "^3.0.0",
65-
"@jupyterlab/filebrowser": "^3.0.0",
66-
"@jupyterlab/fileeditor": "^3.0.0",
67-
"@jupyterlab/launcher": "^3.0.0",
68-
"@jupyterlab/mainmenu": "^3.0.0",
63+
"@jupyterlab/docmanager": "^3.6.0",
64+
"@jupyterlab/docregistry": "^3.6.0",
65+
"@jupyterlab/filebrowser": "^3.6.0",
66+
"@jupyterlab/fileeditor": "^3.6.0",
67+
"@jupyterlab/launcher": "^3.6.0",
68+
"@jupyterlab/mainmenu": "^3.6.0",
6969
"@jupyterlab/services": "^6.0.0",
70-
"@jupyterlab/settingregistry": "^3.0.0",
71-
"@jupyterlab/statedb": "^3.0.0",
72-
"@jupyterlab/ui-components": "^3.0.0",
70+
"@jupyterlab/settingregistry": "^3.6.0",
71+
"@jupyterlab/statedb": "^3.6.0",
72+
"@jupyterlab/ui-components": "^3.6.0",
7373
"@lumino/coreutils": "^1.5.3",
7474
"@lumino/disposable": "^1.4.3",
7575
"@lumino/domutils": "^1.2.3",
@@ -80,11 +80,11 @@
8080
"react-dom": "^17.0.1"
8181
},
8282
"devDependencies": {
83-
"@jupyterlab/builder": "^3.0.0-rc.13",
83+
"@jupyterlab/builder": "^3.6.3",
8484
"@types/react": "^16.9.16",
8585
"@types/react-dom": "^16.9.4",
86-
"@typescript-eslint/eslint-plugin": "^2.27.0",
87-
"@typescript-eslint/parser": "^2.27.0",
86+
"@typescript-eslint/eslint-plugin": "^4.13.0",
87+
"@typescript-eslint/parser": "^4.13.0",
8888
"eslint": "^7.5.0",
8989
"eslint-config-prettier": "^6.10.1",
9090
"eslint-plugin-prettier": "^3.1.2",
@@ -97,10 +97,10 @@
9797
"tslint": "^5.18.0",
9898
"tslint-config-prettier": "^1.18.0",
9999
"tslint-plugin-prettier": "^2.0.1",
100-
"typescript": "~4.1.3"
100+
"typescript": "~5.0.4"
101101
},
102102
"resolutions": {
103-
"@types/react": "~16.4.13"
103+
"@types/react": "~18.2.6"
104104
},
105105
"jupyterlab": {
106106
"extension": "lib/index.js",

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[build-system]
22
requires = [
3-
"jupyter_packaging~=0.10,<2",
4-
"jupyterlab~=3.0"
3+
"jupyter_packaging~=0.12,<2",
4+
"jupyterlab~=3.6"
55
]
66
build-backend = "jupyter_packaging.build_api"
77

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
[metadata]
2-
license_file = LICENSE
2+
license_files = LICENSE

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@
8484
'Framework :: Jupyter',
8585
],
8686
install_requires=[
87-
'jupyterlab>=3,<4',
88-
'jupyter_server>=1.6,<2'
87+
'jupyterlab>=3.6,<4',
88+
'jupyter_server>=2'
8989
],
9090
cmdclass=wrap_installers(post_develop=post_develop, ensured_targets=ensured_targets)
9191
)

0 commit comments

Comments
 (0)