Convert frontend to typescript - #314
Conversation
|
That's amazing. Thanks for doing this! |
Yeah. I was wondering if it was not best to do that indeed. I might have some time allocated for working on ipympl soonish, so if you don't have time and if you want I might be able to follow up on this. |
|
Although I believe your approach should work as well. I am not sure what the nbextension issue is. It might be just that the typescript compilation failed but the error didn't propagate and I can have a try. |
My worry was that doing this may make it would make it much harder to maintain the git history
Interesting, looking through the logs that doesn't seem to have happened, but I'll try to look more closely sometime.
Cool, I'll keep trying of course, but not guarantees w.r.t success. |
|
I think part of the issue was that I had accidentally deleted the |
| @@ -0,0 +1,810 @@ | |||
| define("jupyter-matplotlib", ["@jupyter-widgets/base"], (__WEBPACK_EXTERNAL_MODULE__jupyter_widgets_base__) => { return /******/ (() => { // webpackBootstrap | |||
There was a problem hiding this comment.
woops this file snuck in at some points. Will need to remove this in a rebase at some point prior to merging
|
The LGTM for javascript should either be disabled or swapped to typescript. I'm not sure who has the rights to do that, but probably @tacaswell ? |
|
Thank you so much @ianhi ! |
|
hooorayy the tests all pass! There are a few things I still want to clean up and #317 should probably be merged first so let's not merge just yet. TODO:
|
39f6c4b to
2b1b389
Compare
|
test failures are due to the churn in I think it's best to also convert to the method described here: https://github.com/jupyter/jupyter-packaging#as-a-build-backend Though I admit how that works is very mysterious for me so if anyone feels inspired to have a crack at it please feel free to push here. |
|
Sorry for not looking into this earlier. I will rebase and fix the conflicts. It works great in JupyterLab but I have an issue in Jupyter Notebook, I'll see if I can figure it out. |
In the process also update some the tooling (eslint, prettier, setup.py) to more closely the widget-ts-cookiecutter. Also fix miscellanous errors discovered by using typescript. Finally, add a labextension watch command. lint the correct directory Update MANIFEST.in for TS correctly install labextension in the test Return to using yarn in setup.pt
|
Rebased, it seems to work now in Jupyter Notebook as well. Let's see what CI thinks about it. |
|
Let's goooo! Thank you a lot for this! |
|
hooorayy! thanks for pushing it over the edge. I got it working in lab but never could figure out the notebook |
There was a problem hiding this comment.
wow that was it??? nice find




tslabextension:watchscript to package.jsonI think the arguments for switching to typescript are:
@martinRenou what do you think?