Skip to content

Commit 414a4c7

Browse files
committed
nbclassic to use its own static assets
1 parent ca73fca commit 414a4c7

38 files changed

+1369
-56
lines changed

.bowerrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"directory": "notebook/static/components"
2+
"directory": "nbclassic/static/components"
33
}

.github/workflows/js.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
5151
- name: Temporary workaround for sanitizer loading in JS Tests
5252
run: |
53-
cp tools/security_deprecated.js notebook/static/base/js/security.js
53+
cp tools/security_deprecated.js nbclassic/static/base/js/security.js
5454
5555
- name: Install dependencies
5656
run: |

.gitignore

+58
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,61 @@
1+
build
2+
dist
3+
_build
4+
docs/man/*.gz
5+
docs/source/api/generated
6+
docs/source/config.rst
7+
docs/gh-pages
8+
nbclassic/i18n/*/LC_MESSAGES/*.mo
9+
nbclassic/i18n/*/LC_MESSAGES/nbjs.json
10+
nbclassic/static/components
11+
nbclassic/static/style/*.min.css*
12+
nbclassic/static/*/js/built/
13+
nbclassic/static/*/built/
14+
nbclassic/static/built/
15+
nbclassic/static/*/js/main.min.js*
16+
nbclassic/static/lab/*bundle.js
17+
node_modules
18+
*.py[co]
19+
__pycache__
20+
*.egg-info
21+
*~
22+
*.bak
23+
.ipynb_checkpoints
24+
.tox
25+
.DS_Store
26+
\#*#
27+
.#*
28+
.coverage
29+
.pytest_cache
30+
src
31+
32+
*.swp
33+
*.map
34+
.idea/
35+
Read the Docs
36+
config.rst
37+
*.iml
38+
/.project
39+
/.pydevproject
40+
41+
package-lock.json
42+
geckodriver.log
43+
*.iml
44+
45+
# jetbrains IDE stuff
46+
*.iml
47+
.idea/
48+
49+
# ms IDE stuff
50+
*.code-workspace
51+
.history
52+
.vscode
53+
54+
# copied changelog
55+
docs/source/changelog.md
56+
57+
.jupyter_releaser_checkout
58+
159
# Byte-compiled / optimized / DLL files
260
__pycache__/
361
*.py[cod]

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
![Testing nbclassic](https://github.com/jupyterlab/nbclassic/workflows/Testing%20nbclassic/badge.svg)
44

55

6-
NBClassic runs the [Jupyter Notebook](https://github.com/jupyter/notebook) frontend on the Jupyter Server backend.
6+
NBClassic runs the [Jupyter NbClassic](https://github.com/jupyter/nbclassic) frontend on the Jupyter Server backend.
77

88
This project prepares for a future where JupyterLab and other frontends switch to [Jupyter Server](https://github.com/jupyter/jupyter_server/) for their Python Web application backend. Using this package, users can launch Jupyter Notebook, JupyterLab and other frontends side-by-side on top of the new Python server backend.
99

docs-translations/hi-IN/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,5 +73,5 @@ IPython कोडबेस का बिग स्प्लिट ™। IPython
7373
- [Documentation for Jupyter notebook](https://jupyter-notebook.readthedocs.io/en/stable/)
7474
- [Korean Version of Installation](https://github.com/ChungJooHo/Jupyter_Kor_doc/)
7575
- [Documentation for Project Jupyter](https://jupyter.readthedocs.io/en/latest/index.html )
76-
- [Issues](https://github.com/jupyter/notebook/issues)
76+
- [Issues](https://github.com/jupyter/nbclassic/issues)
7777
- [Technical support - Jupyter Google Group](https://groups.google.com/forum/#!forum/jupyter)

docs-translations/ja-JP/README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
[![Build Status](https://travis-ci.org/jupyter/notebook.svg?branch=master)](https://travis-ci.org/jupyter/notebook)
55
[![Documentation Status](https://readthedocs.org/projects/jupyter-notebook/badge/?version=latest)](https://jupyter-notebook.readthedocs.io/en/stable/?badge=latest)
66

7-
英語版のリンク : [[English Version](http://github.com/jupyter/notebook/)]
7+
英語版のリンク : [[English Version](http://github.com/jupyter/nbclassic/)]
88

99
Jupyter Notebookは、インタラクティブなWebベースのノートブック形式の環境です。
1010

@@ -41,17 +41,17 @@ Jupyter Notebookをリモートで起動する前に、いくつかの構成が
4141

4242
## 開発用インストール
4343

44-
開発用インストールのセットアップ方法については、[`CONTRIBUTING.rst`](https://github.com/jupyter/notebook/blob/master/CONTRIBUTING.rst)を参照してください。
44+
開発用インストールのセットアップ方法については、[`CONTRIBUTING.rst`](https://github.com/jupyter/nbclassic/blob/master/CONTRIBUTING.rst)を参照してください。
4545

4646
## 貢献
4747

48-
プロジェクトへの貢献に興味がある場合は、[`CONTRIBUTING.rst`](https://github.com/jupyter/notebook/blob/master/CONTRIBUTING.rst)をご覧ください。
48+
プロジェクトへの貢献に興味がある場合は、[`CONTRIBUTING.rst`](https://github.com/jupyter/nbclassic/blob/master/CONTRIBUTING.rst)をご覧ください。
4949

5050
## 参考
5151

5252
- [Project Jupyter website](https://jupyter.org)
5353
- [Online Demo at try.jupyter.org](https://try.jupyter.org)
5454
- [Documentation for Jupyter notebook](https://jupyter-notebook.readthedocs.io/en/stable/)
5555
- [Documentation for Project Jupyter](https://jupyter.readthedocs.io/en/latest/index.html )
56-
- [Issues](https://github.com/jupyter/notebook/issues)
56+
- [Issues](https://github.com/jupyter/nbclassic/issues)
5757
- [Technical support - Jupyter Google Group](https://groups.google.com/forum/#!forum/jupyter)

docs-translations/ko-KR/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
[![Build Status](https://travis-ci.org/jupyter/notebook.svg?branch=master)](https://travis-ci.org/jupyter/notebook)
55
[![Documentation Status](https://readthedocs.org/projects/jupyter-notebook/badge/?version=latest)](http://jupyter-notebook.readthedocs.io/en/stable/?badge=stable)
66

7-
English 버전 링크 : [[English Version](http://github.com/jupyter/notebook/)]
7+
English 버전 링크 : [[English Version](http://github.com/jupyter/nbclassic/)]
88

99
Jupyter notebook 은 상호 교환을 위한 웹 기반 환경입니다.
1010

@@ -51,5 +51,5 @@ You can find the installation documentation for the
5151
- [Online Demo at try.jupyter.org](https://try.jupyter.org)
5252
- [Documentation for Jupyter notebook](https://jupyter-notebook.readthedocs.io/en/stable/)
5353
- [Documentation for Project Jupyter](https://jupyter.readthedocs.io/en/latest/index.html )
54-
- [Issues](https://github.com/jupyter/notebook/issues)
54+
- [Issues](https://github.com/jupyter/nbclassic/issues)
5555
- [Technical support - Jupyter Google Group](https://groups.google.com/forum/#!forum/jupyter)

docs-translations/zh-CN/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,5 +73,5 @@ IPython代码库的Big Split™。 IPython 3是最后一个主要的整体
7373
- [Documentation for Jupyter notebook](https://jupyter-notebook.readthedocs.io/en/stable/)
7474
- [Korean Version of Installation](https://github.com/ChungJooHo/Jupyter_Kor_doc/)
7575
- [Documentation for Project Jupyter](https://jupyter.readthedocs.io/en/latest/index.html )
76-
- [Issues](https://github.com/jupyter/notebook/issues)
76+
- [Issues](https://github.com/jupyter/nbclassic/issues)
7777
- [Technical support - Jupyter Google Group](https://groups.google.com/forum/#!forum/jupyter)

docs/jsdoc_config.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
],
99
"source": {
1010
"include": [
11-
"../notebook/static/notebook/js/notebook.js"
11+
"../nbclassic/static/notebook/js/notebook.js"
1212
]
1313
},
1414
"tags": {

docs/source/conf.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -98,13 +98,13 @@
9898
author = 'The Jupyter Team'
9999

100100
# ghissue config
101-
github_project_url = "https://github.com/jupyter/notebook"
101+
github_project_url = "https://github.com/jupyter/nbclassic"
102102

103103
# The version info for the project you're documenting, acts as replacement for
104104
# |version| and |release|, also used in various other places throughout the
105105
# built documents.
106106
#
107-
_version_py = '../../notebook/_version.py'
107+
_version_py = '../../nbclassic/_version.py'
108108
version_ns = {}
109109
exec(compile(open(_version_py).read(), _version_py, 'exec'), version_ns)
110110
# The short X.Y version.

docs/source/examples/Notebook/JavaScript Notebook Extensions.ipynb

+2-2
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@
197197
"cell_type": "markdown",
198198
"metadata": {},
199199
"source": [
200-
"Have a look at [default custom.js](https://github.com/jupyter/notebook/blob/4.0.x/notebook/static/custom/custom.js), to see it's content and for more explanation."
200+
"Have a look at [default custom.js](https://github.com/jupyter/nbclassic/blob/4.0.x/nbclassic/static/custom/custom.js), to see it's content and for more explanation."
201201
]
202202
},
203203
{
@@ -306,7 +306,7 @@
306306
"metadata": {},
307307
"source": [
308308
"```bash\n",
309-
"$ cd ~/jupyter/notebook/notebook/static/notebook/js/\n",
309+
"$ cd ~/jupyter/nbclassic/nbclassic/static/notebook/js/\n",
310310
"$ yuidoc . --server\n",
311311
"warn: (yuidoc): Failed to extract port, setting to the default :3000\n",
312312
"info: (yuidoc): Starting [email protected] using [email protected] with [email protected]\n",

docs/source/examples/Notebook/examples_index.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Notebook Examples
55
The pages in this section are all converted notebook files. You can also
66
`view these notebooks on nbviewer`__.
77

8-
__ https://nbviewer.jupyter.org/github/jupyter/notebook/blob/6.4.x/
8+
__ https://nbviewer.jupyter.org/github/jupyter/nbclassic/blob/6.4.x/
99
docs/source/examples/Notebook/
1010

1111
.. toctree::

docs/source/extending/bundler_extensions.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ Bundler invocation details
166166
--------------------------
167167

168168
Support for bundler extensions comes from Python modules in `notebook/bundler`
169-
and JavaScript in `notebook/static/notebook/js/menubar.js`. The flow of data
169+
and JavaScript in `nbclassic/static/notebook/js/menubar.js`. The flow of data
170170
between the various components proceeds roughly as follows:
171171

172172
1. User opens a notebook document

docs/source/extending/frontend_extensions.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ action name, should be unique. Built-in actions, like the
183183
actions defined in an extension, it makes sense to use the extension name as
184184
the prefix. For the action name, the following guidelines should be considered:
185185

186-
.. adapted from notebook/static/notebook/js/actions.js
186+
.. adapted from nbclassic/static/notebook/js/actions.js
187187
188188
* First pick a noun and a verb for the action. For example, if the action is
189189
"restart kernel," the verb is "restart" and the noun is "kernel".

docs/source/extending/handlers.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Custom request handlers
33

44
The notebook webserver can be interacted with using a well `defined
55
RESTful
6-
API <http://petstore.swagger.io/?url=https://raw.githubusercontent.com/jupyter/notebook/master/notebook/services/api/api.yaml>`__.
6+
API <http://petstore.swagger.io/?url=https://raw.githubusercontent.com/jupyter/nbclassic/master/nbclassic/services/api/api.yaml>`__.
77
You can define custom RESTful API handlers in addition to the ones
88
provided by the notebook. As described below, to define a custom handler
99
you need to first write a notebook server extension. Then, in the

docs/source/links.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@
1919
.. Main Jupyter notebook links
2020
2121
.. _Notebook Basics: notebook_p2_
22-
.. _notebook_p2: https://nbviewer.jupyter.org/github/jupyter/notebook/blob/6.4.x/docs/source/examples/Notebook/Notebook%20Basics.ipynb
22+
.. _notebook_p2: https://nbviewer.jupyter.org/github/jupyter/nbclassic/blob/6.4.x/docs/source/examples/Notebook/Notebook%20Basics.ipynb
2323

2424
.. _Running Code in the Jupyter Notebook: notebook_p1_
25-
.. _notebook_p1: https://nbviewer.jupyter.org/github/jupyter/notebook/blob/master/docs/source/examples/Notebook/Running%20Code.ipynb
25+
.. _notebook_p1: https://nbviewer.jupyter.org/github/jupyter/nbclassic/blob/master/docs/source/examples/Notebook/Running%20Code.ipynb
2626

2727
.. Other python projects
2828
.. _matplotlib: https://matplotlib.org
@@ -38,4 +38,4 @@
3838
.. _Plotting with Matplotlib: notebook_p3_
3939
.. _notebook_p3: https://nbviewer.jupyter.org/github/ipython/ipython/blob/master/examples/IPython%20Kernel/Plotting%20in%20the%20Notebook.ipynb
4040

41-
.. _Working with Markdown Cells: https://nbviewer.jupyter.org/github/jupyter/notebook/blob/6.4.x/docs/source/examples/Notebook/Working%20With%20Markdown%20Cells.ipynb
41+
.. _Working with Markdown Cells: https://nbviewer.jupyter.org/github/jupyter/nbclassic/blob/6.4.x/docs/source/examples/Notebook/Working%20With%20Markdown%20Cells.ipynb

docs/source/notebook.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ drop-down on the toolbar (which will be "Code", initially), or via
234234

235235
For more information on the different things you can do in a notebook,
236236
see the `collection of examples
237-
<https://nbviewer.jupyter.org/github/jupyter/notebook/tree/6.4.x/docs/source/examples/Notebook/>`_.
237+
<https://nbviewer.jupyter.org/github/jupyter/nbclassic/tree/6.4.x/docs/source/examples/Notebook/>`_.
238238

239239
Code cells
240240
~~~~~~~~~~

docs/source/security.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -224,4 +224,4 @@ To share a signatures database among users, you can configure:
224224
225225
to specify a non-default path to the SQLite database (of notebook hashes,
226226
essentially). We are aware that SQLite doesn't work well on NFS and we are
227-
`working out better ways to do this <https://github.com/jupyter/notebook/issues/1782>`_.
227+
`working out better ways to do this <https://github.com/jupyter/nbclassic/issues/1782>`_.

docs/source/template.tpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
{% macro notebooklink() -%}
44

5-
`View the original notebook on nbviewer <https://nbviewer.jupyter.org/github/jupyter/notebook/blob/6.4.x/docs/{{ resources['metadata']['path'] }}/{{ resources['metadata']['name'] | replace(' ', '%20') }}.ipynb>`__
5+
`View the original notebook on nbviewer <https://nbviewer.jupyter.org/github/jupyter/nbclassic/blob/6.4.x/docs/{{ resources['metadata']['path'] }}/{{ resources['metadata']['name'] | replace(' ', '%20') }}.ipynb>`__
66

77

88
{%- endmacro %}

docs/source/troubleshooting.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ If you can't find an existing answer, you can ask questions at:
212212
Gathering Information
213213
^^^^^^^^^^^^^^^^^^^^^
214214
Should you find that your problem warrants that an issue be opened in
215-
`notebook <https://github.com/jupyter/notebook>`_ please don't forget to provide details
215+
`notebook <https://github.com/jupyter/nbclassic>`_ please don't forget to provide details
216216
like the following:
217217

218218
* What error messages do you see (within your notebook and, more importantly, in

git-hooks/post-checkout

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ fi
88

99
# if style changed (and less available), rebuild sourcemaps
1010
if [[
11-
! -z "$(git diff $PREVIOUS_HEAD notebook/static/*/js/**.js)"
11+
! -z "$(git diff $PREVIOUS_HEAD nbclassic/static/*/js/**.js)"
1212
]]; then
1313
echo "rebuilding javascript"
1414
python setup.py js || echo "fail to rebuild javascript"
1515
fi
1616

1717
if [[
18-
! -z "$(git diff $PREVIOUS_HEAD notebook/static/*/less/**.less)"
18+
! -z "$(git diff $PREVIOUS_HEAD nbclassic/static/*/less/**.less)"
1919
]]; then
2020
echo "rebuilding css sourcemaps"
2121
python setup.py css || echo "fail to recompile css"

0 commit comments

Comments
 (0)