下面的代码正确地显示了到远程或本地运行的jupyter服务器的超链接。但是,即使鼠标光标从箭头光标变为手光标,我也无法通过单击链接或
ctrl
+点击它。
我需要做什么才能跟踪vs code python扩展的交互式python窗格中显示的超链接?
from IPython.display import display, Markdown
from subprocess import Popen, PIPE
import pandas as pd
process = Popen(['powershell', 'jupyter notebook list'], stdout=PIPE, stderr=PIPE)
stdout, stderr = process.communicate()
jupy = stdout.decode('utf-8')\
.replace('Currently running servers:\r\n', '')\
.strip()\
.split('\r\n')
jupy = [item.split(' :: ')[0] for item in jupy]
# jupy = ['<a href="{}">{}</a>'.format(item, item) for item in jupy]
for link in jupy:
display(Markdown('[{}]'.format(link)))