You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pre-requisites - If you don't have python set up to run notebooks
ensure python is installed on your machine
open a workspace where you will be running tests for this TPI
Create: new jupyter notebook and run print(1) in a cell.
a. If the cell runs successfully, you're already set up, otherwise...
The kernel picker should open, select "Python Environments..." -> "Create Python Environment..." -> select venv or conda, and whichever version you'd like.
A virtual environment should get created in your workspace with all necessary packages installed, and the cell should run successfully.
Test steps
set "notebook.output.minimalErrorRendering": true
run cells that produce errors. Here is one that creates a fairly long stack trace: (run %pip install pandas to install pandas first)
import pandas as pd
# create a dataframe with sample data
df = pd.DataFrame(
{
"Name": ["Alice", "Bob", "Charlie"],
"Age": [25, 30, 35],
"Gender": ["F", "M", "M"],
}
)
column = getColumn(df, "wrong")
print(column)
The error renderer should just display the error name and message, with an option to view the stack and a link to the error location if it is available (it should be for python).
also try running cells with the setting disabled: "notebook.output.minimalErrorRendering": false, and make sure the error renderer looks ok
The text was updated successfully, but these errors were encountered:
Refs: #200253
Complexity: 3
Create Issue
Pre-requisites - If you don't have python set up to run notebooks
Create: new jupyter notebook
and runprint(1)
in a cell.a. If the cell runs successfully, you're already set up, otherwise...
A virtual environment should get created in your workspace with all necessary packages installed, and the cell should run successfully.
Test steps
"notebook.output.minimalErrorRendering": true
%pip install pandas
to install pandas first)"notebook.output.minimalErrorRendering": false
, and make sure the error renderer looks okThe text was updated successfully, but these errors were encountered: