Skip to content

Commit

Permalink
Remove nbextensions and related code
Browse files Browse the repository at this point in the history
  • Loading branch information
brichet committed Jun 15, 2023
1 parent c1961dc commit 5be5848
Show file tree
Hide file tree
Showing 35 changed files with 8 additions and 7,111 deletions.
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,6 @@ target/

# Coverage files
.coverage.*
.selenium.screenshot.png
nbgrader/tests/formgrader/selenium.screenshot.png
nbgrader/tests/nbextensions/selenium.screenshot.png

# Autogenerated docs
nbgrader/docs/build
Expand Down
59 changes: 0 additions & 59 deletions nbgrader/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,65 +33,6 @@ def _jupyter_server_extension_points():
"module": "nbgrader"
}]


# Classic notebook extensions
def _jupyter_nbextension_paths():
paths = [
dict(
section="notebook",
src=os.path.join('nbextensions', 'create_assignment'),
dest="create_assignment",
require="create_assignment/main"
),
dict(
section="tree",
src=os.path.join('nbextensions', 'formgrader'),
dest="formgrader",
require="formgrader/main"
),
dict(
section="notebook",
src=os.path.join('nbextensions', 'validate_assignment'),
dest="validate_assignment",
require="validate_assignment/main"
),
]

if sys.platform != 'win32':
paths.append(
dict(
section="tree",
src=os.path.join('nbextensions', 'assignment_list'),
dest="assignment_list",
require="assignment_list/main"
)
)
paths.append(
dict(
section="tree",
src=os.path.join('nbextensions', 'course_list'),
dest="course_list",
require="course_list/main"
)
)

return paths


# Classic notebook server extensions
def _jupyter_server_extension_paths():
paths = [
dict(module="nbgrader.server_extensions.formgrader"),
dict(module="nbgrader.server_extensions.validate_assignment")
]

if sys.platform != 'win32':
paths.append(dict(module="nbgrader.server_extensions.assignment_list"))
paths.append(dict(module="nbgrader.server_extensions.course_list"))

return paths


def _load_jupyter_server_extension(app):
load_assignments(app)
load_courses(app)
Expand Down
12 changes: 6 additions & 6 deletions nbgrader/docs/source/contributor_guide/releasing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ The version number should have been changed in the following files :
- ``pyproject.toml``
- ``package.json``
- ``nbgrader/_version.py``
- ``nbgrader/nbextensions/assignment_list/main.js``
- ``nbgrader/nbextensions/course_list/main.js``
- ``nbgrader/nbextensions/validate_assignment/main.js``
- ``src/assignment_list/index.ts``
- ``src/course_list/index.ts``
- ``src/validate_assignment/index.ts``

Rebuild the documentation
-------------------------
Expand Down Expand Up @@ -173,6 +173,6 @@ As a reminder, the files concerned are :
- ``pyproject.toml``
- ``package.json``
- ``nbgrader/_version.py``
- ``nbgrader/nbextensions/assignment_list/main.js``
- ``nbgrader/nbextensions/course_list/main.js``
- ``nbgrader/nbextensions/validate_assignment/main.js``
- ``src/assignment_list/index.ts``
- ``src/course_list/index.ts``
- ``src/validate_assignment/index.ts``
103 changes: 0 additions & 103 deletions nbgrader/nbextensions/assignment_list/assignment_list.css

This file was deleted.

Loading

0 comments on commit 5be5848

Please sign in to comment.