# NOT RUN {
# enter the Python REPL, create a dictionary, and exit
repl_python()
dictionary = {'alpha': 1, 'beta': 2}
exit
# access the created dictionary from R
py$dictionary
# $alpha
# [1] 1
#
# $beta
# [1] 2
# }
# NOT RUN {
# }
Run the code above in your browser using DataCamp Workspace