Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python chunks not echo-ing #432

Closed
isteves opened this issue Feb 14, 2019 · 2 comments
Closed

Python chunks not echo-ing #432

isteves opened this issue Feb 14, 2019 · 2 comments

Comments

@isteves
Copy link

isteves commented Feb 14, 2019

My Python chunks are not showing the outputs unless I print() them explicitly. Is this expected behavior? (I'm used to being able to see chunk outputs in Jupyter.) As far as I can tell, this issue may be related: rstudio/rstudio#3271

```{python echo = TRUE}
my_dict = {'apples': 3, 'oranges': 5}
my_dict
```

```{python}
print(my_dict)
```

image

I'm using RStudio 1.2.1237, knitr 1.21, reticulate 1.10

Noted: I edited the language from when I first wrote this issue because I realized I'd mixed up what "echo" meant. 😬

@kevinushey
Copy link
Collaborator

I believe this issue is fixed in the development version of reticulate -- can you install that and give it a shot?

devtools::install_github("rstudio/reticulate")

@isteves
Copy link
Author

isteves commented Feb 15, 2019

@kevinushey I had some tar-ing issues with installation (similar to r-lib/devtools#1939), but it worked beautifully once it was installed. Thanks!

@isteves isteves closed this as completed Feb 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants