![]() ![]() ![]() One can use an IDE or integrated development environment to code in Python but there is no question that the easier way to code in Python is to use a Jupyter notebook. The first method focuses on changing the working directory using the OS library which needs not more than 4 lines of code and the second method focuses on changing the default working directory to avoid the hassle of doing it repeatedly using a simple config file.Īlso Read -> Jupyter vs Colab which one is better in 2022 What is a Jupyter Notebook? In this article, we’ll go over two methods to change the working directory as well as the Default working directory while working with a Jupyter Notebook. ![]() It’s simple English and with a little bit of grammar and logic, one can execute machine learning code without having to have a computer science major in their college. However, this is not the case today when Python has been one of the easiest languages to learn yet one of the most powerful ones. In the last decade, writing code was really difficult considering the difficulty of syntaxes and the knowledge and skill required to execute a computer language. Python is relatively the most sought-after programming language of this decade and considering the boom of Data Science in 2017, there’s no doubt that the demand for skills in Python will only increase in the future. So if you are quite new to programming, Python is a great place to start. You can just run it line by line (which is how we can use it in a notebook). Python is a programming language that one does not need to compile. ( and an additional method to change the default working directory ) A short note to anyone new to Python: Let’s dive right into it, for this quick method, we’ll use Python 3 to change the working directory in a Jupyter Notebook with not more than 5 lines of code. This is where it becomes imperative to change the working directory as and how required by the code. This simple mistake can completely change your analysis or take your hard work to vain. More often than not when we are coding, we encounter situations when all the code we wanted to write happens to end up in a destination other than the one we intended to put it in. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |