How To Setup Mavensmate Desktop And Atom For Mac

You can add an existing Git repository to GitHub using GitHub Desktop.

  1. How To Setup Mavensmate Desktop And Atom For Mac Os
  2. How To Setup Mavensmate Desktop And Atom For Mac Catalina
  1. Packaged desktop app for MavensMate server. Contribute to joeferraro/MavensMate-Desktop development by creating an account on GitHub.
  2. This setup program will install Atom, add the atom and apm commands to your PATH, and create shortcuts on the desktop and in the start menu. The context menu Open with Atom in File Explorer, and the option to make Atom available for file association using Open with., is controlled by the System Settings panel as seen above.
  3. MavensMate for Atom is a plugin for the Atom text editor that enables Salesforce developers to build App Cloud/Force.com applications inside Atom. Issues All issues are managed by the central MavensMate.

During development of Node.JS, you may need to clone a GitHub reposity to local mac computer. A repository on GitHub is a remote repository. You can clone the repository to your mac computer in order to create a local copy and sync between the two locations. So to install Python, go to the miniconda Download page, download and install the most recent Python 3.x version of miniconda (as of Oct 2020, this was Python 3.8). (On a Mac, the Pkg installer is easier to use) using the installation instructions for your operating system detailed below.

  1. Using the command line, remove any git remotes currently configured for the repository.

  2. Add the repository to GitHub Desktop.

  3. Click the Publish repository button on the toolbar.

  4. Type the desired name of the repository in the Name field or use the default current local repository name.

  5. To publish a public repository, unselect Keep this code private.

  6. Choose the organization in the Organization drop-down where you want to publish the repository, or select None to publish the repository to your personal account.

  7. Click the Publish Repository button.

  1. Using the command line, remove any git remotes currently configured for the repository.

  2. Add the repository to GitHub Desktop.

  3. Click the Publish repository button on the toolbar.

  4. Type the desired name of the repository in the Name field or use the default current local repository name.

  5. To publish a public repository, unselect Keep this code private.

  6. Choose the organization in the Organization drop-down where you want to publish the repository, or select None to publish the repository to your personal account.

  7. Click the Publish repository button.

How to setup mavensmate desktop and atom for mac catalina

Help us make these docs great!

All GitHub docs are open source. See something that's wrong or unclear? Submit a pull request.

Make a contribution

Or, learn how to contribute.

In this tutorial, we’ll go over how to set up all the tools you need to not only work effectively in Python. This will include not only installing Python and a system for managing Python called conda, but we’ll also get you setup with a basic text editor for working with plaintext files.

In particular, we’re going to work through five things:

How to setup mavensmate desktop and atom for mac computers
  1. Install a text editor (if you don’t have one yet)

  2. Install Python with miniconda

  3. Configure miniconda to work from the command line you use (zsh or Cmder).

  4. Configure miniconda to use conda-forge

  5. Install some packages!

1. Installing A Basic Text Editor¶

Mavensmate

One tool you will find incredibly helpful in your career as a data scientist is a good text editor designed to work with plain text files (files that just contain simple text, but no fancy formatting like a Microsoft Word document or a PDF). You’ve probably seen a simple version of this type of editor before (Notepad on Windows, or TextEdit on macs), but is really useful to install a more robust text editor instead.

For this purpose I’m going to recommend Visual Studio Code (better known as VSCode). It’s a Microsoft project, but it’s open source and in addition to being an easy way to edit plaintext files comes with a lot of packages for adding extra functionality. VSCode is definitely not the only good text editor out there, and you’ll find that people have very strong opinions about which one to use (some people swear by in-terminal editors like eMacs, or Vim), and personally I used to rely on Atom (sincegithub – which developed Atom – was bought by Microsoft, it looks like a lot of the development energy has moved over to VSCode, so I think that’s a better place to go now…). If you already have one of these and like it, please feel free to stick with it!

So before we install Python, please follow the directions below to install VSCode if you don’t already have a good text editor.

Installing VSCode on Macs¶

Download and run installer here.

Then to make VS Code accessible from the command line (so you can type things like codeFILENAME and have the file you named open in VS Code), make sure that after you install VSCode, follow the directions here (for macs).

How to setup mavensmate desktop and atom for mac download

Installing VSCode on Windows¶

Download installer here, and make sure that during install you select the “Add to PATH” option.

2. Installing Python and conda¶

Unlike a programming language like R, Python doesn’t have an internal system for installing and updating packages. Instead, we will need to install a dedicated Python package manager (which will also install Python itself).

Within the Python ecosystem, there are two main package managers: conda and pip. Among data scientists, conda is by far the preferred choice. That’s because while both conda and pip do a good job installing Python packages, conda is also capable of installing a wide range of binary dependencies that are often required for data science packages (e.g. geos for geospatial work, igraph for network analysis, etc.). Indeed, you can even do things like install R through conda. Moreover,as long as you install packages from a specific provider in conda (something will discuss how to do below), conda does a really good job of avoiding package conflicts. Of course, you will sometimes find conda doesn’t have a package you need, in which case you can use pip without problems, but in general I recommend starting with conda.

Of the first thing we need to do is install conda. Is there two ways to do this: the first is to install the Anaconda distribution, which includes both the conda package manager and a ton of commonly used packages; the second is to install miniconda, which only installs Python and the conda package manager. I strongly recommend the second option (miniconda) because in my experience having a ton of packages preinstalled causes lots of package conflicts down the road.

So to install Python, go to the miniconda Download page, download and install the most recent Python 3.x version of miniconda (as of Oct 2020, this was Python 3.8). (On a Mac, the Pkg installer is easier to use) using the installation instructions for your operating system detailed below:

How To Setup Mavensmate Desktop And Atom For Mac Os

Installation for Mac Users¶

By default, miniconda will install itself into your home folder. Except that and don’t try to install it in the custom location!

Installation for Windows Users¶

When asked whether you want to install for “Just Me” or “All Users”, pick “Just Me”.

One of the checkboxes during the Windows installation is “do you want to add Anaconda to your PATH?”. Select Yes. I know they discourage it, but it allows miniconda to work well with Cmder.

If there’s a Python 3.8, why is there also a Python 2.7 available?¶

In 2000, Python 3 was first released. Python 3 fixed a lot of things people disliked about Python, but in the process it made some changes that meant code written in Python 2 would not work any more. To ease the transition to Python 3, both Python 2 and Python 3 have been supported for several years so people could keep running their Python 2 projects while they finished the transition. Almost everything is now in Python 3, so since you don’t have any old code to worry about, you want Python 3.

Deleting conda¶

One of the really nice things about conda is that it keeps everything in a single folder, including conda, Python, and all the packages you install. As a result, if you ever need to delete your conda installation (whether it’s Anaconda or miniconda), all you have to do is delete your folder.

This is good to know because a lot of the troubleshooting advice you will get from the Internet when you have problems with packages is to just delete your installation and start again. In fact, if you already have a pre-existing anaconda or miniconda installation, I would actually recommend that you delete it and install a clean version using the instructions above.

Depending on the exact version of conda you have installed, your installation will live in a folder that is called Anaconda3 or miniconda3 that is located in either: your home directory (c:users<yourusername> on Windows or /users/<yourusername>/ on macs); in /users/<yourusername>/opt (macs); or in /opt/ (if you installed “For all users”). To delete your current installation, just delete that folder!

(OK, one more tweak: if you’re on a mac, and you move from Anaconda to miniconda (and thus change the name of your conda folder from anaconda3 to miniconda3) or change where conda is installed, you’ll need to update the code snippet in your .zshrc file too as discussed in the next section.)

3. Using miniconda with Your Command Line Tool¶

Below are some directions for making sure that you can use conda with your command line tool of choice!

Windows Users using Cmder¶

If you’re using Cmder as suggsted… you’re done! :) Congratulations.

Using conda with Oh-My-Zsh¶

If you installed Oh-My-Zsh during the command line exercises (as suggested here, then miniconda won’t work right away. The problem is that when you install miniconda, it adds some code to the .bash_profile file in your user directory that makes conda visible to your bash session by adding it to your PATH variable (jump to the PATH variable section of the Advanced Command Line reading if that doesn’t sound familiar).

How To Setup Mavensmate Desktop And Atom For Mac Catalina

But Oh-My-Zsh doesn’t run the .bash_profile file when it opens; it runs the .zshrc file. So what we have to do is move the code Anaconda put in .bash_profile into .zshrc. You can do this as follows:

  1. Open .bash_profile and copy the block of text that begin with #>>>condainit>>> and ends with #<<<condainit<<<. You have VSCode now, so you can do this by openning your Terminal, and running code~/.bash_profile (which will open your .bash_profile file in VSCode).

  2. Then open .zshrc (again, code~/.zshrc), scroll to the bottom of the file, and past the text you copied from .bash_profile into .zshrc.

  3. Save that file, close your current session of Oh-My-Zsh, open it again, and test to see if you were successful by typing conda-h. If a conda helpfile gets printed out, you’re good!

The code you’re copying should look something like the following, starting with a #>>>condainit>>> and ending with #<<<condainit<<<.

Your conda works if…¶

You can run conda-h from your command line and you see a helpfile print out like below instead of conda:commandnotfound, you’re good!

4. Configure conda to use conda-forge¶

Conda is a package installer, but it is capable of installing from a number of different package providers (people who prepare packages for installation). By far the best provider of packages in conda-forge, so we’re gonna set that as your default by running the following two lines of code:

5. Install some packages!¶

As you go along in life, you’ll find you need packages from time to time, but here’s a good startup installation command for things you’ll want in this class: