Giter Site home page Giter Site logo

summer2022-pythontutorial's Introduction

Summer 2022 - Python Tutorial

Simple Python/ROOT Tutorial for CMS@Rice Summer 2022

Logging into a Cluster

Lxplus

Lxplus is the CERN computing cluster based in Geneva. Using your cern credentials to login,

ssh <username>@lxplus.cern.ch>
(Prompted to put password)

cmslpc

cmslpc is the FNAL computing cluster based in Chicago. Login requires downloading a Kerberos configuration file and modifying your .ssh. Directions can be found here Using your FNAL credentials you then do,

kinit <username>@FNAL.gov
(Prompted to put password)

ssh -Y <username>@cmslpc-sl7.fnal.gov

Setting Up CMSSW

CMSSW is CMS SoftWare that will create an evironment for development and running code. Use scram list -a to list all releases of CMSSW. On cmslpc you first need to do source /cvmfs/cms.cern.ch/cmsset_default.sh.

cd <working_dir>
cmsrel CMSSW_12_0_1
cd CMSSW_12_0_1/src/

cmsenv

Setting Up GitHub

First thing is to generate a key pair using the command using your GitHub email

ssh-keygen -t rsa -b 4096 -C "[email protected]"

Press return and set passphrase. Copy the contents of ~/.ssh/<file_name>.pub. Open GitHub>Settings>SSH keys then click Add SSH Key and paste the contents.

Pulling from GitHub

Fork this repository using the button in the top right. This will create your own version of the repository for you to edit.

Now you can clone the repository to the cluster using,

git clone [email protected]:<github_username>/Summer2022-PythonTutorial.git
cd Summer2022-PythonTutorial

Now you can create your own branch for development using,

git checkout -b <your_new_branch_name>
git push origin <your_new_branch_name>

Pushing to GitHub After Changes

After making changes to the code you can add, commit, then push your changes to your new branch on your fork.

git add .
git commit -m "Write Some Message"
git push

summer2022-pythontutorial's People

Contributors

jrotter2 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.