Writing a Python Function in RStudio


I'm new to write Python in RStudio.

I wrote a python function on a script. It helps me to clear python environment from workspace. When all of us write R code, brush button shows for clearing workspace and we always use the button but it doesn't work with Python. That's why I wrote this function.

As you can see on the image, it doesn't save on my workspace, when i define the function.

I have to push enter button again. Then the function defined.

How can i define the function with one enter?


This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.