-
Notifications
You must be signed in to change notification settings - Fork 68
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
Missing definition file require.js while trying to use thebe-core in a JupyterLab extension #761
Comments
Hi @nthiery! On Bringing in the requirejs types I'm curious about your end objective @nthiery - what will your extension do? |
Thanks @stevejpurves for the quick feecback! No luck alas (unless it was wrong to use jlpm instead of npm): Details> jlpm add @types/requirejs ... > jlpm build node_modules/@types/node/globals.d.ts:96:9 - error TS2403: Subsequent variable declarations must have the same type. Variable 'require' must be of type 'Require', but here has type 'NodeRequire'. We are building a jupyterlab widget that renders notebooks with a bespoke execution / rendering model, to be used in an application for repetitive exercises with randomization. To implement that, we want to have fine control on how cell inputs and outputs are rendered and interact with the kernel. thebe-core and in particular things like |
In case you'd have time for debugging together, I am available all day (French time) for a visio). |
@nthiery I realize that you are looking for a place to start without re-inventing the wheel 👍🏼 but trying to pull in The thebe/packages/core/src/passive.ts Line 12 in 6d825e4
That means you'll be using and dependent upon the right versions of the jupyter apis without |
Hi @stevejpurves, Thanks a lot for the insight! |
I am trying to use thebe-core in a JupyterLab extension. To this end, I used:
However, in subsequent builds of my extension, I get these errors:
Any suggestions?
The thebe-lite error was easy to fix by forcing
jlpm add thebe-lite
, though I would have expected this to be automatic with the dependency on thebe-lite written in thebe-core/.../package.json.For information: I tried installing from a local clone of the development version of thebe by doing
jlpm add /opt/thebe/packages/core
; but I probably did that wrong since I get:I have tried various things like cleaning up the cache, redoing a fresh install, ... However I am beginner in Javascript development and may well have screwed stupid things ... sorry :-)
Help appreciated!
The text was updated successfully, but these errors were encountered: