-
Notifications
You must be signed in to change notification settings - Fork 17
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
datar
not working on RStudio notebooks
#67
Comments
This is because the source code is not available for |
Hi @pwwang, I did look at the documentation and did figure it out yet. can you provide an example to do the following in RStudio notebook ?
|
Here you go:
|
Ah, my bad. The following should work: ```{python}
from pipda import options
options.assume_all_piping = True
from datar.all import *
from datar.datasets import mtcars
mtcars >> mutate(carb_2 = f.carb)
``` |
It worked, thanks @pwwang |
If in Rsutio with the latest version , it both works whether |
@pwwang @rleyvasal
|
@antonio-yu |
@antonio-yu, I can confirm that in the latest version of Rstudio (version 2021.09.0 ), |
Then I will close this for now. If you have any related questions, feel free to reopen it or open new issues. |
@pwwang, just curious, do you know why the pipes work without ```{python}
from pipda import options
options.assume_all_piping = True
``` |
It's all that matters whether the environment (jupyter, rstudio, etc) exposes the source code at runtime. |
@rleyvasal Just took a look at how Rstudio is running python. It actually executes python code with something like |
I am trying to run code on RStudio R notebooks with
datar
but the code does not run. I would like to use R notebooks to highlight parts of thedatar
code and run separately.@pwwang what is the issue with running
datar
on RStudio.The text was updated successfully, but these errors were encountered: