Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split the project in two packages: UI (npm) and jupyterlab extension #3

Merged
merged 18 commits into from
Mar 26, 2024

Conversation

brichet
Copy link
Collaborator

@brichet brichet commented Mar 22, 2024

This PR splits the project in 2 packages:

  • jupyter-chat, an NPM package with UI stuff to easily build a chat in a jupyterlab extension
  • jupyter-chat-extension, using the first package to provide a chat extension using Websocket

@brichet brichet added the enhancement New feature or request label Mar 22, 2024
lerna.json Outdated Show resolved Hide resolved
Co-authored-by: Jeremy Tuloup <jeremy.tuloup@gmail.com>
@brichet brichet marked this pull request as ready for review March 25, 2024 08:09

[tool.jupyter-releaser.hooks]
before-build-npm = [
"python -m pip install 'jupyterlab>=4.0.0,<5'",
"jlpm",
"YARN_ENABLE_IMMUTABLE_INSTALLS=0 jlpm",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like something might still not be behaving as expected.

Normally this env var should not be needed. Maybe we can track that in an issue to have a look later?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure, because there are 2 packages in the project, and one depends on the other (@jupyter/chat-extension depends on @jupyter/chat), but the bump occurs on both packages.

@brichet brichet requested a review from trungleduc March 25, 2024 09:16
README.md Outdated Show resolved Hide resolved
@@ -0,0 +1,220 @@
{
"name": "@jupyter/chat-extension",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this package be in the @jupyter organization?

Copy link
Collaborator Author

@brichet brichet Mar 26, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right, @jupyterlab organization seems more appropriate.
Were you thinking about an other one ?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe it doesn't need organization at all

Copy link
Collaborator Author

@brichet brichet Mar 26, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, we could rename it jupyter-chat-extension, or jupyterlab-chat-extension.
The second choice seems more appropriate, but we should also rename the python package for consistency.

packages/jupyter-chat-extension/src/index.ts Outdated Show resolved Hide resolved
brichet and others added 3 commits March 26, 2024 11:45
Co-authored-by: Duc Trung Le <leductrungxf@gmail.com>
@brichet brichet merged commit 5fb26ad into jupyterlab:main Mar 26, 2024
4 checks passed
@brichet brichet deleted the monorepo branch March 26, 2024 18:08
@brichet
Copy link
Collaborator Author

brichet commented Mar 26, 2024

Thanks all for review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants