-bash: code: command not found
, but you can see the VS Code application has been installed, then something went wrong with setting up the launch from the command line. Try following these instructions again, in particular you might want to try the described manual method of adding VS Code to your path.code ~/.gitconfig
) or by typing git config --list --global
.git
) use vscode by default, we will modify ~/.bash_profile
. First, open it using VS Code:~/.bash_profile
related to a previous Python or R installation,please remove these.EDITOR
environmental variable when determining which editor to use, but some read VISUAL
, so we’re setting both to the same value.conda
as our Python package manager. To install Python and the conda
package manager, we will use the Miniconda platform (read more here), which Miniconda MacOSX 64-bit pkg install for Python 3.8 can be downloaded here..(base)
prepending to your prompt string. To confirm that conda
is working, you can ask it which version was installed:zsh: command not found: conda
, see the section on Bash above to set your default Terminal shell to Bash as opposed to Zsh.Python 2.7.X
you installed the wrong version. Uninstall the Miniconda you just installed (which usually lives in the /opt
directory), and try the installation again, selecting Python 3.8.conda
installs Python packages from different online repositories which are called “channels”.A package needs to go through thorough testing before it is included in the default channel,which is good for stability,but also means that new versions will be delayed and fewer packages are available overall.There is a community-driven effort called the conda-forge (read more here),which provides more up to date packagesTo enable us to access the most up to date version of the Python packages we are going to use,we will add the more up to date channel,To add the conda-forge channel by typing the following in the terminal:conda install <package-name>
. Let’s install the key packages needed for the start of our program:conda
will show you the packages that will be downloaded,and you can press enter to proceed with the installation.If you want to answer yes
by default and skip this confirmation step,you can replace conda install
with conda install -y
.jupyter lab
into a terminal, which should open a new tab in your default browser with the JupyterLab interface.To exit out of JupyterLab you can click File -> Shutdown
,or go to the terminal from which you launched JupyterLab and hold Ctrl
while pressing c
twice.conda uninstall r-base
.renv
package manager (which you will learn about in DSCI 521: Platforms for Data Science).IRkernel
package is needed to make R work in Jupyter notebooks. To enable this kernel in the notebooks, install by pasting the following command into the RStudio Console:$PATH
changes in ~/.bash_profile
)library(tidyverse)
in the code cell and click on the run button to run the cell. If your R kernel works you should see something like the image below:<-
and %>%
.Run the following from terminal to install the extension:Alt
+ -
or Shift
+ Command
+ m
, respectively.tinytex
package and setup tinytex
:/usr/local/bin
is not writeable,you will need to open a terminal and run the following two commands before proceeding:jupyter lab
from a terminal and open either a new notebookor the same one you used to test IRkernel above.Go to File -> Export notebook as... -> Export Notebook to PDF
.If the PDF file is created,your LaTeX environment is set up correctly.SQL Shell
app from the LaunchPad or applications directory. You will be asked to setup your configuration, accept the default value (the one within square brackets) for the first four values by pressing enter four times, then type in your password and press enter one last time. It should look like this if it is working correctly: