Not logged in
Talk
Contributions
Create account
Log in
Navigation
Main page
About
People
Publications
Teaching
Resources
Research Blog
Wiki Functions
Recent changes
Help
Licensing
Page
Discussion
Edit
View history
Editing
OSX set up Python (Anaconda)
(section)
From CommunityData
Jump to:
navigation
,
search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Test your Python install == To use Anaconda on MacOS, you will primarily use the Anaconda Navigator; It lets you manage the installed python tools, create custom setups, and launch tools like Jupyter. The easiest way to launch the Anaconda Navigator is from inside the Applications folder: [[File:Macos-anaconda-navigator.png|200px]] The navigator will start up and greet you with a list of installed and available tools: [[File:Macos-anaconda-nav-hub.png|frameless|400px]] One of the options (it's the middle option in the screenshot) should be called "Jupyter Notebook". Click that to open Jupyter Notebook! After a few seconds, you'll see a new tab open in your default browser. It will look something like this: [[File:Jupyternb launch.png|500px]] Your default browser is where you'll be working with Jupyter Notebooks. If for some reason you '''don't''' see something in your browser, let a mentor know. When you launched the notebook from Anaconda, you may have noticed a Terminal window popped up, like this: [[File:Terminal.png|500px]] You can hide it, but do not close it during the whole time when you are using the Jupyter Notebook. If you close it, your Jupyter Notebook will be closed automatically. To close Anaconda, first go to your terminal, then, press "CONTROL+C" keys, you will see a new line on your terminal: [[File:Shutdownline.png]] Press "y" key, then press "RETURN" key. Now your Anaconda is closed :) Now Anaconda is not running on your terminal. You can press the "x" on the upper left corner of your terminal window to close the terminal as well. <!-- From the left hand side, choose '''Environments''', then choose the small "play" button. A menu will appear; choose the option 'Open with Python'. This will open an interactive Python window that we're going to use to test Python out with. [[File:Macos-anaconda-environments.png|frameless|400px]] Enter into the window '''print("Hello, World!")'''. You should see the text '''"Hello, World!"''' echoed back at you. Enter into the window '''<tt>exit()</tt>''' and you'll shut down the Python session and get a helpful '''<tt>[Process Completed]</tt>''' from the terminal, telling you your session is over. [[File:Macos-conda-python-hello.png|frameless|400px]] Press '''Command-Q''' or choose '''Terminal > Quit Terminal''' from the menu to close Terminal. --> Success! You've gotten Anaconda and Python working on your Mac!
Summary:
Please note that all contributions to CommunityData are considered to be released under the Attribution-Share Alike 3.0 Unported (see
CommunityData:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:
Cancel
Editing help
(opens in new window)
Tools
What links here
Related changes
Special pages
Page information