Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 868289c

Browse files
committed
fix elixir project dependencies
1 parent 07ffa65 commit 868289c

File tree

5 files changed

+86
-74
lines changed

5 files changed

+86
-74
lines changed

‎README.md‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<small>go from data to knowledge</small>
88
</div>
99

10-
# ElixirNote
10+
# [ElixirNote](https://ciusji.gitbook.io/elixirnote/)
1111

1212
[![Build Status](https://github.com/jupyterlab/jupyterlab/workflows/Linux%20Tests/badge.svg)](https://github.com/jupyterlab/jupyterlab/actions?query=branch%3Amaster+workflow%3A%22Linux+Tests%22)
1313
[![Build Status](https://github.com/jupyterlab/jupyterlab/workflows/Windows%20Tests/badge.svg)](https://github.com/jupyterlab/jupyterlab/actions?query=branch%3Amaster+workflow%3A%22Windows+Tests%22)
@@ -54,9 +54,11 @@ Read the current ElixirNote documentation on [ElixirNote Docs](https://ciusji.gi
5454
- [Command Palette](https://ciusji.gitbook.io/elixirnote/guides/command-palette)
5555
- [File & Output Format](https://ciusji.gitbook.io/elixirnote/guides/file-and-output-formats)
5656
- [Extensions](https://ciusji.gitbook.io/elixirnote/guides/extensions)
57+
- [Elixir Server](https://ciusji.gitbook.io/elixirnote/guides/elixirnote-server)
5758
- [Elixir Hub](https://ciusji.gitbook.io/elixirnote/guides/elixirnote-hub)
5859
- [Realtime Collaboration](https://ciusji.gitbook.io/elixirnote/guides/real-time-collaboration)
5960
- [APIs](https://ciusji.gitbook.io/elixirnote/guides/apis)
61+
- [FAQ](https://ciusji.gitbook.io/elixirnote/appendix/faq)
6062

6163
## Getting Help
6264

‎jupyterlab/labapp.py‎

Lines changed: 55 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,13 @@
5151
extensions_handler_path,
5252
)
5353

54-
DEV_NOTE = """You're running JupyterLab from source.
55-
If you're working on the TypeScript sources of JupyterLab, try running
54+
DEV_NOTE = """You're running ElixirNote from source.
55+
If you're working on the TypeScript sources of ElixirNote, try running
5656
57-
jupyter lab --dev-mode --watch
57+
elixir-lab --dev-mode --watch
5858
5959
60-
to have the system incrementally watch and build JupyterLab for you, as you
60+
to have the system incrementally watch and build ElixirNote for you, as you
6161
make changes.
6262
"""
6363

@@ -96,22 +96,22 @@
9696
Troubleshooting: If the build failed due to an out-of-memory error, you
9797
may be able to fix it by disabling the `dev_build` and/or `minimize` options.
9898
99-
If you are building via the `jupyter lab build` command, you can disable
99+
If you are building via the `elixir-lab build` command, you can disable
100100
these options like so:
101101
102-
jupyter lab build --dev-build=False --minimize=False
102+
elixir-lab build --dev-build=False --minimize=False
103103
104-
You can also disable these options for all JupyterLab builds by adding these
105-
lines to a Jupyter config file named `jupyter_config.py`:
104+
You can also disable these options for all ElixirNote builds by adding these
105+
lines to a Elixir config file named `elixir_config.py`:
106106
107107
c.LabBuildApp.minimize = False
108108
c.LabBuildApp.dev_build = False
109109
110-
If you don't already have a `jupyter_config.py` file, you can create one by
111-
adding a blank file of that name to any of the Jupyter config directories.
110+
If you don't already have a `elixir_config.py` file, you can create one by
111+
adding a blank file of that name to any of the Elixir config directories.
112112
The config directories can be listed by running:
113113
114-
jupyter --paths
114+
elixir --paths
115115
116116
Explanation:
117117
@@ -123,7 +123,7 @@
123123
build is used in all circumstances.
124124
125125
- `minimize`: This option controls whether your JS bundle is minified
126-
during the Webpack build, which helps to improve JupyterLab's overall
126+
during the Webpack build, which helps to improve ElixirNote's overall
127127
performance. However, the minifier plugin used by Webpack is very memory
128128
intensive, so turning it off may help the build finish successfully in
129129
low-memory environments.
@@ -133,10 +133,10 @@
133133
class LabBuildApp(JupyterApp, DebugLogFileMixin):
134134
version = version
135135
description = """
136-
Build the JupyterLab application
136+
Build the ElixirNote application
137137
138-
The application is built in the JupyterLab app directory in `/staging`.
139-
When the build is complete it is put in the JupyterLab app `/static`
138+
The application is built in the ElixirNote app directory in `/staging`.
139+
When the build is complete it is put in the ElixirNote app `/static`
140140
directory, where it is used to serve the application.
141141
"""
142142
aliases = build_aliases
@@ -149,13 +149,14 @@ class LabBuildApp(JupyterApp, DebugLogFileMixin):
149149

150150
name = Unicode("ElixirNote", config=True, help="The name of the built application")
151151

152-
version = Unicode("", config=True, help="The version of the built application")
152+
# version = Unicode("", config=True, help="The version of the built application")
153153

154154
dev_build = Bool(
155155
None,
156156
allow_none=True,
157157
config=True,
158-
help="Whether to build in dev mode. Defaults to True (dev mode) if there are any locally linked extensions, else defaults to False (production mode).",
158+
help="Whether to build in dev mode. Defaults to True (dev mode) if there are any locally linked extensions, "
159+
"else defaults to False (production mode).",
159160
)
160161

161162
minimize = Bool(
@@ -176,7 +177,7 @@ def start(self):
176177
core_config=self.core_config,
177178
splice_source=self.splice_source,
178179
)
179-
self.log.info("JupyterLab %s", version)
180+
self.log.info("ElixirNote %s", version)
180181
with self.debug_logging():
181182
if self.pre_clean:
182183
self.log.info("Cleaning %s" % app_dir)
@@ -225,7 +226,7 @@ class LabCleanAppOptions(AppOptions):
225226
class LabCleanApp(JupyterApp):
226227
version = version
227228
description = """
228-
Clean the JupyterLab application
229+
Clean the ElixirNote application
229230
230231
This will clean the app directory by removing the `staging` directories.
231232
Optionally, the `extensions`, `settings`, and/or `static` directories,
@@ -269,7 +270,7 @@ def start(self):
269270
class LabPathApp(JupyterApp):
270271
version = version
271272
description = """
272-
Print the configured paths for the JupyterLab application
273+
Print the configured paths for the ElixirNote application
273274
274275
The application path can be configured using the JUPYTERLAB_DIR
275276
environment variable.
@@ -314,7 +315,7 @@ def _default_workspaces_dir(self):
314315
class LabWorkspaceApp(JupyterApp):
315316
version = version
316317
description = """
317-
Import or export a JupyterLab workspace or list all the JupyterLab workspaces
318+
Import or export a ElixirNote workspace or list all the ElixirNote workspaces
318319
319320
There are three sub-commands for export, import or listing of workspaces. This app
320321
should not otherwise do any work.
@@ -350,8 +351,8 @@ class LabLicensesApp(LicensesApp):
350351
False,
351352
config=True,
352353
help="""Whether to start the app in dev mode. Uses the unpublished local
353-
JavaScript packages in the `dev_mode` folder. In this case JupyterLab will
354-
show a red stripe at the top of the page. It can only be used if JupyterLab
354+
JavaScript packages in the `dev_mode` folder. In this case ElixirNote will
355+
show a red stripe at the top of the page. It can only be used if ElixirNote
355356
is installed as `pip install -e .`.
356357
""",
357358
)
@@ -409,29 +410,29 @@ class LabApp(NotebookConfigShimMixin, LabServerApp):
409410
ElixirNote - An extensible computational environment for Jupyter.
410411
411412
This launches a Tornado based HTML Server that serves up an
412-
HTML5/Javascript JupyterLab client.
413+
HTML5/Javascript ElixirNote client.
413414
414415
ElixirNote has three different modes of running:
415416
416-
* Core mode (`--core-mode`): in this mode JupyterLab will run using the JavaScript
417-
assets contained in the installed `jupyterlab` Python package. In core mode, no
418-
extensions are enabled. This is the default in a stable JupyterLab release if you
417+
* Core mode (`--core-mode`): in this mode ElixirNote will run using the JavaScript
418+
assets contained in the installed `ElixirNote` Python package. In core mode, no
419+
extensions are enabled. This is the default in a stable ElixirNote release if you
419420
have no extensions installed.
420421
* Dev mode (`--dev-mode`): uses the unpublished local JavaScript packages in the
421-
`dev_mode` folder. In this case JupyterLab will show a red stripe at the top of
422-
the page. It can only be used if JupyterLab is installed as `pip install -e .`.
423-
* App mode: JupyterLab allows multiple JupyterLab "applications" to be
422+
`dev_mode` folder. In this case ElixirNote will show a red stripe at the top of
423+
the page. It can only be used if ElixirNote is installed as `pip install -e .`.
424+
* App mode: ElixirNote allows multiple ElixirNote "applications" to be
424425
created by the user with different combinations of extensions. The `--app-dir` can
425426
be used to set a directory for different applications. The default application
426427
path can be found using `jupyter lab path`.
427428
"""
428429

429430
examples = """
430-
jupyter lab # start JupyterLab
431-
jupyter lab --dev-mode # start JupyterLab in development mode, with no extensions
432-
jupyter lab --core-mode # start JupyterLab in core mode, with no extensions
433-
jupyter lab --app-dir=~/myjupyterlabapp # start JupyterLab with a particular set of extensions
434-
jupyter lab --certfile=mycert.pem # use SSL/TLS certificate
431+
elixir-lab # start ElixirNote
432+
elixir-lab --dev-mode # start ElixirNote in development mode, with no extensions
433+
elixir-lab --core-mode # start ElixirNote in core mode, with no extensions
434+
elixir-lab --app-dir=~/myElixirNoteApp # start ElixirNote with a particular set of extensions
435+
elixir-lab --certfile=mycert.pem # use SSL/TLS certificate
435436
"""
436437

437438
aliases = aliases
@@ -455,8 +456,8 @@ class LabApp(NotebookConfigShimMixin, LabServerApp):
455456
)
456457
flags["expose-app-in-browser"] = (
457458
{"LabApp": {"expose_app_in_browser": True}},
458-
"""Expose the global app instance to browser via window.jupyterapp.
459-
It is also available via the deprecated window.jupyterlab name.""",
459+
"""Expose the global app instance to browser via window.elixirnote.
460+
It is also available via the deprecated window.elixirnote name.""",
460461
)
461462
flags["extensions-in-dev-mode"] = (
462463
{"LabApp": {"extensions_in_dev_mode": True}},
@@ -487,7 +488,7 @@ class LabApp(NotebookConfigShimMixin, LabServerApp):
487488
config=True, help=("The override url for static lab theme assets, typically a CDN.")
488489
)
489490

490-
app_dir = Unicode(None, config=True, help="The app directory to launch JupyterLab from.")
491+
app_dir = Unicode(None, config=True, help="The app directory to launch ElixirNote from.")
491492

492493
user_settings_dir = Unicode(
493494
get_user_settings_dir(), config=True, help="The directory for user settings."
@@ -498,9 +499,9 @@ class LabApp(NotebookConfigShimMixin, LabServerApp):
498499
core_mode = Bool(
499500
False,
500501
config=True,
501-
help="""Whether to start the app in core mode. In this mode, JupyterLab
502+
help="""Whether to start the app in core mode. In this mode, ElixirNote
502503
will run using the JavaScript assets that are within the installed
503-
JupyterLab Python package. In core mode, third party extensions are disabled.
504+
ElixirNote Python package. In core mode, third party extensions are disabled.
504505
The `--dev-mode` flag is an alias to this to be used when the Python package
505506
itself is installed in development mode (`pip install -e .`).
506507
""",
@@ -510,8 +511,8 @@ class LabApp(NotebookConfigShimMixin, LabServerApp):
510511
False,
511512
config=True,
512513
help="""Whether to start the app in dev mode. Uses the unpublished local
513-
JavaScript packages in the `dev_mode` folder. In this case JupyterLab will
514-
show a red stripe at the top of the page. It can only be used if JupyterLab
514+
JavaScript packages in the `dev_mode` folder. In this case ElixirNote will
515+
show a red stripe at the top of the page. It can only be used if ElixirNote
515516
is installed as `pip install -e .`.
516517
""",
517518
)
@@ -521,7 +522,7 @@ class LabApp(NotebookConfigShimMixin, LabServerApp):
521522
config=True,
522523
help="""Whether to load prebuilt extensions in dev mode. This may be
523524
useful to run and test prebuilt extensions in development installs of
524-
JupyterLab. APIs in a JupyterLab development install may be
525+
ElixirNote. APIs in a ElixirNote development install may be
525526
incompatible with published packages, so prebuilt extensions compiled
526527
against published packages may not work correctly.""",
527528
)
@@ -533,7 +534,7 @@ class LabApp(NotebookConfigShimMixin, LabServerApp):
533534
expose_app_in_browser = Bool(
534535
False,
535536
config=True,
536-
help="Whether to expose the global app instance to browser via window.jupyterlab",
537+
help="Whether to expose the global app instance to browser via window.elixirnote",
537538
)
538539

539540
collaborative = Bool(True, config=True, help="Whether to enable collaborative mode.")
@@ -618,14 +619,14 @@ def _default_theme_url(self):
618619
return ""
619620

620621
def initialize_templates(self):
621-
# Determine which model to run JupyterLab
622+
# Determine which model to run ElixirNote
622623
if self.core_mode or self.app_dir.startswith(HERE + os.sep):
623624
self.core_mode = True
624-
self.log.info("Running JupyterLab in core mode")
625+
self.log.info("Running ElixirNote in core mode")
625626

626627
if self.dev_mode or self.app_dir.startswith(DEV_DIR + os.sep):
627628
self.dev_mode = True
628-
self.log.info("Running JupyterLab in dev mode")
629+
self.log.info("Running ElixirNote in dev mode")
629630

630631
if self.watch and self.core_mode:
631632
self.log.warning("Cannot watch in core mode, did you mean --dev-mode?")
@@ -635,7 +636,7 @@ def initialize_templates(self):
635636
self.log.warning("Conflicting modes, choosing dev_mode over core_mode")
636637
self.core_mode = False
637638

638-
# Set the paths based on JupyterLab's mode.
639+
# Set the paths based on ElixirNote's mode.
639640
if self.dev_mode:
640641
dev_static_dir = ujoin(DEV_DIR, "static")
641642
self.static_paths = [dev_static_dir]
@@ -657,7 +658,7 @@ def initialize_handlers(self):
657658

658659
handlers = []
659660

660-
# Set config for Jupyterlab
661+
# Set config for ElixirNote
661662
page_config = self.serverapp.web_app.settings.setdefault("page_config_data", {})
662663
page_config.setdefault("buildAvailable", not self.core_mode and not self.dev_mode)
663664
page_config.setdefault("buildCheck", not self.core_mode and not self.dev_mode)
@@ -671,8 +672,8 @@ def initialize_handlers(self):
671672
# Client-side code assumes notebookVersion is a JSON-encoded string
672673
page_config["notebookVersion"] = json.dumps(jpserver_version_info)
673674

674-
self.log.info("JupyterLab extension loaded from %s" % HERE)
675-
self.log.info("JupyterLab application directory is %s" % self.app_dir)
675+
self.log.info("ElixirNote extension loaded from %s" % HERE)
676+
self.log.info("ElixirNote application directory is %s" % self.app_dir)
676677

677678
build_handler_options = AppOptions(
678679
logger=self.log,
@@ -704,7 +705,7 @@ def initialize_handlers(self):
704705
errored = True
705706

706707
if self.watch:
707-
self.log.info("Starting JupyterLab watch mode...")
708+
self.log.info("Starting ElixirNote watch mode...")
708709
if self.dev_mode:
709710
watch_dev(self.log)
710711
else:
@@ -731,7 +732,7 @@ def initialize_handlers(self):
731732
api_token = os.getenv("JUPYTERHUB_API_TOKEN", "")
732733
page_config["token"] = api_token
733734

734-
# Update Jupyter Server's webapp settings with jupyterlab settings.
735+
# Update Jupyter Server's webapp settings with ElixirNote settings.
735736
self.serverapp.web_app.settings.update(
736737
{
737738
"page_config_data": page_config,
@@ -741,7 +742,7 @@ def initialize_handlers(self):
741742
}
742743
)
743744

744-
# Extend Server handlers with jupyterlab handlers.
745+
# Extend Server handlers with ElixirNote handlers.
745746
self.handlers.extend(handlers)
746747
super().initialize_handlers()
747748

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /