live-share
live-share copied to clipboard
Jupyter Notebook Integration
Hello,
Thank you for your work on Live Share and the existing integration of Jupyter notebooks. However, the existing implementation of Notebooks is effectively non-functional for anything beyond simply looking at the file, as changes do not update live/users cannot see cursors/follow does not work. The linked wiki doc is from a year ago and discusses these issues, so I am wondering if any progress has been made. Is it still recommended to use the Insiders build?
Thank you
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.
- ID: 011994ac-b60c-8a9b-bd31-2bb037611205
- Version Independent ID: 599e97e6-ace4-45af-ce97-be6b743a68c9
- Content: Notebooks - Visual Studio Live Share - Visual Studio Live Share
- Content Source: docs/reference/notebooks.md
- Product: visual-studio-family
- Technology: live-share
- GitHub Login: @lostintangent
- Microsoft Alias: joncart
Hi, thank you for letting us know. If you have any Live Share logs that would be super helpful . Please attach them to this thread. Yes please keep using the insiders build.
Of course. Where might I find them?
You can access them via the Live Share: Export Logs
command from the command palette (ctrl + shift + p
) and attach them to this issue.
@setaskin Are there any updates? I'm having the same issue. Steps to reproduce: (steps starting with '>' are command pallet commands)
- Open VSCode in a folder with a notebook. (We'll call this window - A)
- A: Open notebook file (test.ipynb)
- A:
> Clear Cell Outputs
- A:
>start collaboration session (share)
- A: File > New window (We'll call this new window - B)
- B:
>join collaboration session
- B: Paste the link and press enter
- B: Get the warning
Co-editing is not supported for notebooks opened with non-shared views.
- B: Open test.ipynb
- B: Try to execute a cell with a print statement (this might bring up the allow executing request, I think I have clicked always allow)
- B: Try to run cell 1 and 2
- See the HTML output appear on window A but not B.
- Export logs from A and B.
Jupyter notebok content:
# %%
from matplotlib import pyplot as plt
from bokeh.models import HoverTool
from hvplot import pandas
from dateutil import parser
import panel as pn
import pandas as pd
import numpy as np
import holoviews as hv
from typing import List
from os import path
import scipy
import scipy.optimize
import scipy.special
import scipy.signal
from functools import reduce
import operator
import glob
import datetime
from IPython.core.interactiveshell import InteractiveShell
from tqdm.notebook import trange, tqdm
from copy import deepcopy
import json
import operator
# %%
df = pd.DataFrame(data={'x':[1,2], 'y':[1,2]})
df.hvplot(x='x', y='y')
# %%
print('hi')
@GeorgeLertzmanLepofsky we are working on a bunch of fixes in this area to improve the regressed Notebook experience. CC: @setaskin @nandiniYeltiwar for updates.
Updates on notebook bugs:
- Follow or cursor highlight/selection - fixed in latest release
- Co-editing broken with error message: Co-editing is not supported for notebooks opened with non-shared views. - investigating
- Cell execution does not show up on guest - investigating
@TwoUnderscorez , Hi , we are looking into this issue but meanwhile there is a workaround you can use. In your scenario if guest (Window B) selects a notebook controller, It will fix the issue. Pease refer the below screen shot. Check out the top right button and select the controller from the opened list.
Issue is filed on VS Code side: https://github.com/microsoft/vscode/issues/167887