Skip to content

Latest commit

 

History

History
75 lines (48 loc) · 2.71 KB

setup.md

File metadata and controls

75 lines (48 loc) · 2.71 KB

Set Up

Running Python in the Cloud

If you would just like to try out these notebooks to see if Python is right for you, we recommend running the notebooks in the cloud using GitHub Codespaces.

To use GitHub Codespaces, you will need a GitHub account. If you do not have one, you can create one for free at github.com.

Next, click the following button to open the notebooks in GitHub Codespaces:

Open in GitHub Codespaces

This will take a few minutes to start up. By default, the Codespace will open in an interface called VSCode. However, we recommend using the Jupyter Lab interface. To use this interface, click this link to see your Codespaces. GitHub will have given your CodeSpace a random name. Click the buttons with three dots to the right of your CodeSpace and select "Open with Jupyter Lab".

jupyter-lab

Installing Python Locally

If you would like to install Python and run these notebooks on your own computer, we reccomend the following:

  1. Download and install miniconda - Miniconda is a package manager that will allow you to install Python and other software needed for this workshop. If you already have conda installed, you can skip this step.

  2. Install solver - We recommend changing a setting having to do with how packages are installed. After you have the conda package manager installed, open your terminal (if on Mac or Linux) or the Anaconda Prompt (if on Windows).

Note, if you have previously installed conda, you will first need to do the following in your terminal:

conda update -n base conda

Then, execute the following command

conda install -n base conda-libmamba-solver -c conda-forge

Then run this command

conda config --set solver libmamba
  1. Clone or download the files for the workshop from the GitHub reposistory.
git clone https://github.com/MolSSI-Education/python-experimental-chem.git
  1. Install the environment for the workshop Once you've cloned the workshop materials, you can create an environment with all the necessary packages by navigating to the workshop directory and running the following command:
conda env create -f environment.yml
  1. Test your installation

You can test your installation by activating the environment and opening the jupyter lab interface.

Type the following to activate your environment

conda activate sermacs-workshop

Type the following to open a Jupyter Lab interface:

jupyter lab