Skip to content
This repository was archived by the owner on Jul 3, 2024. It is now read-only.
This repository was archived by the owner on Jul 3, 2024. It is now read-only.

Is there a way to associate custom type definitions to a code cell? #3

@yutao-huang

Description

@yutao-huang

I'm now building an extension based on this sample extension. The code cell in my notebook is using some custom modules. And I'd like the code IntelliSense support of them.

As a workaround I switched the language of the code cell into Typescript and explicitly injected a line at the top of each code cell like this:

///<reference path="the-absolute-path-to-the-d.ts-file"/>
...

Wondering if there is a better way so I don't have to manually inject this triple slash to clutter the code cell. Thanks!

Metadata

Metadata

Assignees

Labels

questionFurther information is requested

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions