MCPcopy Create free account
hub / github.com/deepnote/vscode-deepnote / get_variables

Function get_variables

pythonFiles/tests/ipython/scripts.py:51–58  ·  view source on GitHub ↗
(capsys)

Source from the content-addressed store, hash-verified

49
50
51def get_variables(capsys):
52 path = os.path.dirname(os.path.abspath(__file__))
53 file = os.path.abspath(os.path.join(path, "./getJupyterVariableList.py"))
54 if execute_script(file):
55 read_out = capsys.readouterr()
56 return json.loads(read_out.out)
57 else:
58 raise Exception("Getting variables failed.")
59
60
61def find_variable_json(varList, varName):

Callers 4

test_variable_listFunction · 0.85
test_variable_valueFunction · 0.85
test_dataframe_infoFunction · 0.85
test_dataframe_rowsFunction · 0.85

Calls 3

joinMethod · 0.80
execute_scriptFunction · 0.70
dirnameMethod · 0.65

Tested by 4

test_variable_listFunction · 0.68
test_variable_valueFunction · 0.68
test_dataframe_infoFunction · 0.68
test_dataframe_rowsFunction · 0.68