@@ -301,44 +301,50 @@ jobs:
301
301
isScheduled : ' '
302
302
include :
303
303
# Mandatory tests
304
- # - jupyterConnection: remote //https://github.com/microsoft/vscode-jupyter/issues/16851
305
- # python: python
306
- # pythonVersion: '3.10'
307
- # tags: '^[^@]+$|@mandatory'
308
- # os: ubuntu-latest
309
- # ipywidgetsVersion: ''
304
+ - jupyterConnection : remote
305
+ python : python
306
+ pythonVersion : ' 3.10'
307
+ tags : ' ^[^@]+$|@mandatory'
308
+ os : ubuntu-latest
309
+ ipywidgetsVersion : ' '
310
310
# - jupyterConnection: remote
311
311
# python: python
312
312
# pythonVersion: '3.10'
313
313
# packageVersion: 'prerelease'
314
314
# tags: '^[^@]+$|@mandatory'
315
315
# os: ubuntu-latest
316
316
# ipywidgetsVersion: ''
317
- # - jupyterConnection: web //https://github.com/microsoft/vscode-jupyter/issues/16851
318
- # python: python
319
- # pythonVersion: '3.10'
320
- # tags: '^[^@]+$|@mandatory'
321
- # os: ubuntu-latest
322
- # ipywidgetsVersion: ''
317
+ - jupyterConnection : web
318
+ python : python
319
+ pythonVersion : ' 3.10'
320
+ tags : ' ^[^@]+$|@mandatory'
321
+ os : ubuntu-latest
322
+ ipywidgetsVersion : ' '
323
323
- jupyterConnection : raw
324
324
python : python
325
325
pythonVersion : ' 3.10'
326
326
tags : ' ^[^@]+$|@mandatory'
327
327
os : windows-latest
328
328
ipywidgetsVersion : ' '
329
- # IPyWidgets 8
329
+ # IPyWidgets 7 & 8
330
330
- jupyterConnection : raw
331
331
python : python
332
332
pythonVersion : ' 3.10'
333
333
tags : ' @widgets'
334
334
os : ubuntu-latest
335
- ipywidgetsVersion : ' 8'
335
+ ipywidgetsVersion : ' 7'
336
+ - jupyterConnection : raw
337
+ python : python
338
+ pythonVersion : ' 3.10'
339
+ tags : ' @widgets'
340
+ os : ubuntu-latest
341
+ ipywidgetsVersion : ' '
336
342
- jupyterConnection : remote
337
343
python : python
338
344
pythonVersion : ' 3.10'
339
345
tags : ' @widgets'
340
346
os : ubuntu-latest
341
- ipywidgetsVersion : ' 8 '
347
+ ipywidgetsVersion : ' '
342
348
# Conda
343
349
- jupyterConnection : raw
344
350
python : conda
@@ -361,12 +367,12 @@ jobs:
361
367
os : ubuntu-latest
362
368
ipywidgetsVersion : ' '
363
369
# Misc
364
- # - jupyterConnection: remote //https://github.com/microsoft/vscode-jupyter/issues/16851
365
- # python: python
366
- # pythonVersion: '3.10'
367
- # tags: '@kernelCore'
368
- # os: ubuntu-latest
369
- # ipywidgetsVersion: ''
370
+ - jupyterConnection : remote
371
+ python : python
372
+ pythonVersion : ' 3.10'
373
+ tags : ' @kernelCore'
374
+ os : ubuntu-latest
375
+ ipywidgetsVersion : ' '
370
376
371
377
steps :
372
378
- name : Checkout
@@ -425,16 +431,16 @@ jobs:
425
431
# Caching (https://github.com/actions/cache/blob/main/examples.md#python---pip
426
432
- name : Cache pip on linux
427
433
uses : actions/cache@v4
428
- if : matrix.os == 'ubuntu-latest' && matrix.python != 'conda' && matrix.python != 'noPython' && matrix.ipywidgetsVersion != '8 '
434
+ if : matrix.os == 'ubuntu-latest' && matrix.python != 'conda' && matrix.python != 'noPython' && matrix.ipywidgetsVersion == '7 '
429
435
with :
430
436
path : ~/.cache/pip
431
- key : ${{ runner.os }}-pip-${{env.PYTHON_VERSION}}-${{hashFiles('build/venv-test-requirements.txt')}}
437
+ key : ${{ runner.os }}-pip-${{env.PYTHON_VERSION}}-${{hashFiles('build/venv-test-ipywidgets7- requirements.txt')}}
432
438
restore-keys : |
433
439
${{ runner.os }}-pip-${{env.PYTHON_VERSION}}-7
434
440
435
441
- name : Cache pip on linux
436
442
uses : actions/cache@v4
437
- if : matrix.os == 'ubuntu-latest' && matrix.python != 'conda' && matrix.python != 'noPython' && matrix.ipywidgetsVersion == '8 '
443
+ if : matrix.os == 'ubuntu-latest' && matrix.python != 'conda' && matrix.python != 'noPython' && matrix.ipywidgetsVersion != '7 '
438
444
with :
439
445
path : ~/.cache/pip
440
446
key : ${{ runner.os }}-pip-${{env.PYTHON_VERSION}}-${{hashFiles('build/venv-test-ipywidgets8-requirements.txt')}}
@@ -443,16 +449,16 @@ jobs:
443
449
444
450
- name : Cache pip on mac
445
451
uses : actions/cache@v4
446
- if : matrix.os == 'macos-latest' && matrix.python != 'conda' && matrix.python != 'noPython' && matrix.ipywidgetsVersion != '8 '
452
+ if : matrix.os == 'macos-latest' && matrix.python != 'conda' && matrix.python != 'noPython' && matrix.ipywidgetsVersion == '7 '
447
453
with :
448
454
path : ~/Library/Caches/pip
449
- key : ${{ runner.os }}-pip-${{env.PYTHON_VERSION}}-${{hashFiles('build/venv-test-requirements.txt')}}
455
+ key : ${{ runner.os }}-pip-${{env.PYTHON_VERSION}}-${{hashFiles('build/venv-test-ipywidgets7- requirements.txt')}}
450
456
restore-keys : |
451
457
${{ runner.os }}-pip-${{env.PYTHON_VERSION}}-7
452
458
453
459
- name : Cache pip on mac
454
460
uses : actions/cache@v4
455
- if : matrix.os == 'macos-latest' && matrix.python != 'conda' && matrix.python != 'noPython' && matrix.ipywidgetsVersion == '8 '
461
+ if : matrix.os == 'macos-latest' && matrix.python != 'conda' && matrix.python != 'noPython' && matrix.ipywidgetsVersion != '7 '
456
462
with :
457
463
path : ~/Library/Caches/pip
458
464
key : ${{ runner.os }}-pip-${{env.PYTHON_VERSION}}-${{hashFiles('build/venv-test-ipywidgets8-requirements.txt')}}
@@ -461,16 +467,16 @@ jobs:
461
467
462
468
- name : Cache pip on windows
463
469
uses : actions/cache@v4
464
- if : matrix.os == 'windows-latest' && matrix.python != 'conda' && matrix.python != 'noPython' && matrix.ipywidgetsVersion != '8 '
470
+ if : matrix.os == 'windows-latest' && matrix.python != 'conda' && matrix.python != 'noPython' && matrix.ipywidgetsVersion == '7 '
465
471
with :
466
472
path : ~\AppData\Local\pip\Cache
467
- key : ${{ runner.os }}-pip-${{env.PYTHON_VERSION}}-${{hashFiles('build/venv-test-requirements.txt')}}
473
+ key : ${{ runner.os }}-pip-${{env.PYTHON_VERSION}}-${{hashFiles('build/venv-test-ipywidgets7- requirements.txt')}}
468
474
restore-keys : |
469
475
${{ runner.os }}-pip-${{env.PYTHON_VERSION}}-7
470
476
471
477
- name : Cache pip on windows
472
478
uses : actions/cache@v4
473
- if : matrix.os == 'windows-latest' && matrix.python != 'conda' && matrix.python != 'noPython' && matrix.ipywidgetsVersion == '8 '
479
+ if : matrix.os == 'windows-latest' && matrix.python != 'conda' && matrix.python != 'noPython' && matrix.ipywidgetsVersion != '7 '
474
480
with :
475
481
path : ~\AppData\Local\pip\Cache
476
482
key : ${{ runner.os }}-pip-${{env.PYTHON_VERSION}}-${{hashFiles('build/venv-test-ipywidgets8-requirements.txt')}}
@@ -517,30 +523,29 @@ jobs:
517
523
# debugpy is not shipped, only installed for local tests.
518
524
# In production, we get debugpy from python extension.
519
525
- name : Install Python Libs
520
- if : matrix.python != 'conda' && matrix.python != 'noPython' && matrix.ipywidgetsVersion != '8 ' && matrix.tags != '@notebookPerformance'
526
+ if : matrix.python != 'conda' && matrix.python != 'noPython' && matrix.ipywidgetsVersion == '7 ' && matrix.tags != '@notebookPerformance'
521
527
run : |
522
528
python --version
523
529
python -c "import sys;print(sys.executable)"
524
- python -m pip --disable-pip-version-check install -r build/venv-test-requirements.txt
530
+ python -m pip --disable-pip-version-check install -r build/venv-test-ipywidgets7- requirements.txt
525
531
python -m pip install packaging # required for installing debugpy
532
+ python -m pip install --upgrade notebook
526
533
python ./pythonFiles/install_debugpy.py
527
534
python -m ipykernel install --user
528
535
529
536
- name : Install Jupyter Notebook and Lab
530
537
if : matrix.jupyterConnection == 'remote' || matrix.jupyterConnection == 'web'
531
538
run : |
532
- python -m pip install jupyterlab notebook
539
+ python -m pip install --upgrade jupyterlab notebook
533
540
534
541
- name : Install Python Libs (IPyWidget 8)
535
- if : matrix.python != 'conda' && matrix.python != 'noPython' && matrix.ipywidgetsVersion == '8 ' && matrix.tags != '@notebookPerformance'
542
+ if : matrix.python != 'conda' && matrix.python != 'noPython' && matrix.ipywidgetsVersion != '7 ' && matrix.tags != '@notebookPerformance'
536
543
run : |
537
544
python --version
538
545
python -c "import sys;print(sys.executable)"
539
- python -m pip install ipywidgets -U
540
546
python -m pip --disable-pip-version-check install -r build/venv-test-ipywidgets8-requirements.txt
541
547
python -m pip install packaging # required for installing debugpy
542
548
python ./pythonFiles/install_debugpy.py
543
- python -m pip install ipywidgets -U
544
549
python -m ipykernel install --user
545
550
546
551
- name : Install Python Libs for conda
@@ -551,20 +556,20 @@ jobs:
551
556
python -m pip install packaging # required for installing debugpy
552
557
python ./pythonFiles/install_debugpy.py
553
558
554
- - name : Install matplotlib widgets into user and system paths
555
- if :
556
- matrix.os == 'ubuntu-latest' && matrix.python != 'conda' && matrix.python != 'noPython' && matrix.packageVersion != 'prerelease' && matrix.tags != '^[^@]+$|@mandatory' && matrix.tags != '@notebookPerformance'
557
- # This test will ensure widgets work when installed in 3 places
558
- # 1. In python environments site-packages folder (we have other 3rd party widgets in the python env)
559
- # 2. In user's home folder (ipympl will be installed in there)
560
- # 3. In system folder (all users) (matplotlib will be installed in there)
561
- run : |
562
- # Uninstall ipympl from the sys prefix folder and ensure the widget scripts are installed
563
- # into the user directory.
564
- export PYTHON_EXECUTABLE=$(which python)
565
- echo $PYTHON_EXECUTABLE
566
- python -m jupyter nbextension uninstall --sys-prefix --py ipympl
567
- sudo $PYTHON_EXECUTABLE -m jupyter nbextension install --system --py ipympl
559
+ # - name: Install matplotlib widgets into user and system paths
560
+ # if:
561
+ # matrix.os == 'ubuntu-latest' && matrix.python != 'conda' && matrix.python != 'noPython' && matrix.packageVersion != 'prerelease' && matrix.tags != '^[^@]+$|@mandatory' && matrix.tags != '@notebookPerformance'
562
+ # # This test will ensure widgets work when installed in 3 places
563
+ # # 1. In python environments site-packages folder (we have other 3rd party widgets in the python env)
564
+ # # 2. In user's home folder (ipympl will be installed in there)
565
+ # # 3. In system folder (all users) (matplotlib will be installed in there)
566
+ # run: |
567
+ # # Uninstall ipympl from the sys prefix folder and ensure the widget scripts are installed
568
+ # # into the user directory.
569
+ # export PYTHON_EXECUTABLE=$(which python)
570
+ # echo $PYTHON_EXECUTABLE
571
+ # python -m jupyter nbextension uninstall --sys-prefix --py ipympl
572
+ # sudo $PYTHON_EXECUTABLE -m jupyter nbextension install --system --py ipympl
568
573
569
574
# Run npm install (we need chrome to get downloaded)
570
575
- name : npm ci
@@ -615,11 +620,13 @@ jobs:
615
620
616
621
- name : Create Virtual Env for Tests
617
622
uses : ./.github/actions/create-venv-for-tests
618
- if : matrix.python != 'conda' && matrix.python != 'noPython' && matrix.os != 'windows-latest' && matrix.jupyterConnection != 'remote' && matrix.tags != '^[^@]+$|@mandatory' && matrix.ipywidgetsVersion != '8' && matrix.jupyterConnection != 'web' && matrix.jupyterConnection != 'remote' && matrix.tags != '@debugger' && matrix.tags != '@webview|@export|@lsp|@variableViewer' && matrix.tags != '@notebookPerformance'
623
+ if : matrix.python != 'conda' && matrix.python != 'noPython' && matrix.os != 'windows-latest' && matrix.jupyterConnection != 'remote' && matrix.tags != '^[^@]+$|@mandatory' && matrix.ipywidgetsVersion == '7' && matrix.jupyterConnection != 'web' && matrix.jupyterConnection != 'remote' && matrix.tags != '@debugger' && matrix.tags != '@webview|@export|@lsp|@variableViewer' && matrix.tags != '@notebookPerformance'
624
+ with :
625
+ IPyWidgetVersion : ' 7'
619
626
620
627
- name : Create Virtual Env for Tests (ipywidgets 8)
621
628
uses : ./.github/actions/create-venv-for-tests
622
- if : matrix.python != 'conda' && matrix.python != 'noPython' && matrix.os != 'windows-latest' && matrix.jupyterConnection != 'remote' && matrix.tags != '^[^@]+$|@mandatory' && matrix.ipywidgetsVersion == '8 ' && matrix.jupyterConnection != 'web' && matrix.jupyterConnection != 'remote' && matrix.tags != '@debugger' && matrix.tags != '@webview|@export|@lsp|@variableViewer' && matrix.tags != '@notebookPerformance'
629
+ if : matrix.python != 'conda' && matrix.python != 'noPython' && matrix.os != 'windows-latest' && matrix.jupyterConnection != 'remote' && matrix.tags != '^[^@]+$|@mandatory' && matrix.ipywidgetsVersion != '7 ' && matrix.jupyterConnection != 'web' && matrix.jupyterConnection != 'remote' && matrix.tags != '@debugger' && matrix.tags != '@webview|@export|@lsp|@variableViewer' && matrix.tags != '@notebookPerformance'
623
630
with :
624
631
IPyWidgetVersion : ' 8'
625
632
0 commit comments