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

how to specify javascript code needed #62

Open
yifanwu opened this issue Mar 14, 2020 · 1 comment
Open

how to specify javascript code needed #62

yifanwu opened this issue Mar 14, 2020 · 1 comment

Comments

@yifanwu
Copy link

yifanwu commented Mar 14, 2020

Hi folks, in basic js based extensions, the developer could specify the files required, like the following

https://github.com/ipython-contrib/jupyter_contrib_nbextensions/blob/master/src/jupyter_contrib_nbextensions/nbextensions/codefolding/main.js#L13-L23

What is the equivalent in this repo? Where could it be specified? I need the 'codemirror/addon/fold/foldcode', and I don't know where to specify it.

Thanks!

@yifanwu yifanwu closed this as completed Mar 14, 2020
@yifanwu yifanwu reopened this Mar 14, 2020
@ianhi
Copy link
Contributor

ianhi commented Jul 11, 2020

I think ipycytoscape is a good example for those types of imports.

The imports are here:
https://github.com/QuantStack/ipycytoscape/blob/61c4679b07bb820b88a7ede1bdc7c678d9c141b9/src/widget.ts#L20-L28
and the packages are specified in package.json here
https://github.com/QuantStack/ipycytoscape/blob/61c4679b07bb820b88a7ede1bdc7c678d9c141b9/package.json#L58-L62

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

No branches or pull requests

2 participants