-
Notifications
You must be signed in to change notification settings - Fork 13
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
Support for Tmod and Lmod #62
Conversation
- Typescript contents are moved to root dir to match with extension dir layout - Renamed lmod to module - Added handlers to get found module system name and logo - Renamed most of the instances of lmod to module except for pkg name - Added Lmod and Tmod logos to static dir - Added editable build command to pyproject.toml - Added npm-run-all to package.json - Changed extension named to @jupyterlab/jupyterlab-lmod to match standard convention - Included yarn.lock with repo - Added install.json file
@cmd-ntrf Maybe it is a good idea to add tests in a separate PR? Just to have a cleaner discussion? |
Yes. |
I think the name of the organization should correspond to an npm org where we can host the package. jupyter-server-proxy recently went through a similar discussion: And to be honest, I would prefer jupyter-lmod to be adopted at some point by some jupyter related org.
Agreed.
With some luck, that issue might be fixed by the time we release the new version of jupyter-lmod.
We could and if we do, we would need to document it properly. If you look back in the history of jupyter-lmod, a recurring bug was related to these regexes. Getting them right was not easy, so people should modified them only if they really not what they are doing.
I have never worked with it either, but I am willing to give it a shot.
I agree with aiming to do the release along JupyterLab 4. We will also have to think about Notebook 7, which is entirely based on JupyterLab. |
Fair enough! Have not thought about distributing the npm package.
I mean we can keep the same defaults that are being used now. So, if users do not want to configure, they will get the same behavior. Anyways, configurable regexes can be made in a separate PR.
Agree! Havent tested it on Notebook 7 though. Changelog says extensions made for Notebook < 7 would not work on 7. I will test it and see what I can do! |
Tmod and Lmod emits slightly difference messages when listing no loaded modules. Correct module system detection method call in reset.
@cmd-ntrf Did you have time to look into these PRs? |
@mahendrapaipuri Please accept my deepest apologies, I am currently relocating with my family and I did have not time to work on this. I should be able to give you feedback / merge in a couple weeks. Again sorry for the late reply. |
Hey @cmd-ntrf No problem at all. Just checking in!! |
Hello @cmd-ntrf, so I did some refactoring of code base to change the variable names to generic module instead of lmod. Here are the important points:
jlpm run watch
in development mode.@jupyterlab/jupyterlab-lmod
to match standard convention. If you prefer to have your namespace@cmd-ntrf
, let me know, I will change it back.jupyter_server>=2
. Seems like this is due to the way auth is working injupyter_server>=2
(Ref: PR). When I reverted back tojupyter_server<2
, it worked as expected.Suggestions:
MODULE_REGEX
andMODULE_HIDDEN_REGEX
configurable? They can be sometimes platform dependent.We can discuss the changes here and I will add unit tests shortly!! As we are changing the API interface (at least the names), I think this deserves a major release. Maybe we can aim to do release along with JupyterLab 4, which is supposed to be in May. What do you think?