UNPKG
@tabnine/jupyterlab
Version:
latest (0.0.24)
0.0.24
0.0.23
0.0.22
0.0.21
0.0.20
0.0.19
0.0.18
0.0.17
0.0.16
0.0.15
0.0.12
JupyterLab client for Tabnine
github.com/codota/tabnine-jupyterlab
@tabnine/jupyterlab
/
src
/
utils
/
notebook.utils.ts
11 lines
(9 loc)
•
216 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
import
{
Cell
}
from
"@jupyterlab/cells"
;
export
function
dummyFilenameByCellType
(
cell: Cell
) {
switch
(cell?.
model
?.
type
) {
case
"markdown"
:
return
"test.md"
;
default
:
return
"test.py"
; } }