![]() This indicates that you are currently inside the default anaconda environment. Maybe you will also see next to your username, the word “base”: mine says (base) ~ %. This hopefully should show that you have the latest version (22.11.1 or 23.1.0 or something? not sure) Once anaconda has been installed, open up a terminal and type conda -version. Below, I’ll explain how to interact with the command line interface: how to create environments, install packages, and install jupyter Start Anaconda The GUI can be nice (for example, it comes pre-installed with jupyter usually), but it can be very slow. This will install both the command line interface and the “anaconda navigator” GUI. Download the graphical installer and follow the instructions. Installing and Setting Up Anaconda Install Anaconda There’s nothing stopping you from working on project A in the wrong environment, but it probably won’t work when you try to run your code. Any time you want to work on project A, you can enter the environment you set up for it, and likewise for project B. You can’t update python to version 3.6, because that would break everything in your first project! Instead, you put each project into its own virtual environment so that they can’t interfere. If you have a mac, open a terminal and type python -version to check), but you have another project (B) that uses PyMC (a Bayesian modeling package), which needs python version 3.6. Say that you’re working on project A that relies on python version 2.7 (This is probably what your computer came with if you have a mac. Anaconda environmentsĪnaconda helps to manage virtual environments which are like little quarantine chambers for each of your code projectsĪ virtual environment is a collection of software and packages that is segregated from other virtual environments to prevent conflicts between them. Python is famously messy with how it’s installed, so it’s good to get ahead of the curve and just use an environment manager like anaconda. ![]() Jupyter-lab can be used on its own with your base version of python, but I really recommend using an environment manager as well. In this document I’ll be talking mostly about jupyter-lab, but everything applies to jupyter-notebook as well. Jupyter-lab and Jupyter-notebooks are akin to working with an Rmarkdown notebook. It doesn’t mean that jupyter-lab connects to a website, just that it uses your web browser application as its GUI. I’m not sure why this is, but I think it makes it so that they don’t have to develop their own app interface, and can just write everything in html or something. ![]() You interact with jupyter-lab through your web browser.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |