Wait, what?? Why would you use R Studio as an IDE for running Python? There’s a simple answer to this question: this is the perfect Data Science IDE when you use R and Python together. You’ll find below the simple steps to help set up a project in R Studio so you can start using Python: Create an R Studio Project: Navigate and save your project: File -> New Project – > Existing Directory (linked to the GitHub folder if applicable) / New Directory ( if you work locally) . Create and activate Python virtual environment Each project might require different versions of packages and this can be encapsulated in a virtual environment. You’ll have to create and select the virtual environment as the Python interpreter for the RStudio Project and then activate. Install virtual environment with pip install in the RStudio terminal window (initial setup): pip install virtualenv Create the virtual environment for the current project (initial setup): virtualenv environment_name Activate the virtual environment for the current project (initial setup): on Windows: environment_name\Scripts\activate.bat on MAC: source environment_name\bin\activate Select Python interpreter Navigate and select your Python interpreter : Tools -> Global Options – > Python -> Select -> Virtual environments When you open the project, just remember to activate the environment: environment_name\Scripts\activate.bat (Note: I participate in the affiliate amazon program. This post may contain affiliate links from Amazon or other publishers I trust (at no extra cost to you). I may receive a small commission when you buy using my links, this helps to keep the blog alive! See disclosure for details.) If you’re new to RStudio , you can browse this book. Once you start coding, you might be also interested in reading: the 17 Clean Code standards to adopt NOW! “Freeze” your Python environment by creating the Requirements.txt file This is a personal blog. My opinion on what I share with you is that “All models are wrong, but some are useful”. Improve the accuracy of any model I present and make it useful!
Day: April 8, 2022
In this post I am listing the scientific benefits of spending time outdoors and why it’s a good thing for both kids and adults. Now, I’ll write about how indoors can also be fun and educational for toddlers. When indoors, we have to be careful with the amount of screentime a toddler is exposed to. The American Academy of Pediatrics discourages media use by children younger than 2 and recommends limiting older children’s screen time to no more than one or two hours a day. (More on this here). When she has to stay indoors all day, Bianca, my eldest ( 2 years and 9 months today), has the below schedule: wakes up around 8 has breakfast at 9 morning activity ( cooking, painting) at 10 snack around 10:30 dancing at 11 independent play while mum prepares lunch 12 lunch time around 12:30 nap time 13-15 (1.5 hr – 2 hr) evening activities / English cartoons ( Romanian is her first language, but she knows plenty English words from books and cartoons) around 15:30 snack time at 16:00 independent play ( sensory activities: she likes water a lot) / crafts with mum at 17 dinner around 18 independent play at 19 bath time at 20 bedtime routine (reading 2/3 books and practicing English) at 20:30 bedtime between 20:30 and 21:00 Below, I have posted some videos and pics to show our indoor activities. They are super fun, but independent play is key! You should encourage your toddler to play by themselves daily ( in an incremental manner). They also need to explore the world with their tiny eyes. Make sure you give them toys age appropriate, so it won’t get dangerous, boring or frustrating when they play by themselves. (Note: I participate in the affiliate amazon program. This post may contain affiliate links from Amazon or other publishers I trust (at no extra cost to you). I may receive a small commission when you buy using my links, this helps to keep the blog alive! See disclosure for details.) Indoor Toddler Activity 1 – Cooking: Our kitchen helpers: Little helper learning tower The perfect multi food processor, Bosch MUM Indoor Toddler Activity 2 – Painting: Toddler painting set Indoor Toddler Activity 3 – Crafts: One of my few hobbies is creating interior design pieces with paint and lichen / moss. Bianca helps me and really enjoys the activity. I’ll create a separate post on it, but I’ll drop below some pics and what you need if you want to try it at home: lichen & moss glue gun and sticks acrylic paint paint brush set Indoor Toddler Activity 4- Sensory activities: This is a personal blog. My opinion on what I share with you is that “All models are wrong, but some are useful”. Improve the accuracy of any model I present and make it useful!