Code Monkey home page Code Monkey logo

drawing

Documentation Tests License: GPL v3


The offical documentation for LWSSPY can be found here: Documentation

LWSSPY

Installation

Hopefully, it works using conda install lwsspy will work in the future.

Installation using Pip

However,

git clone [email protected]:lsawade/lwsspy.git
cd lwsspy
pip install .

Should work. Use pip install -e . for development mode.

Summit/Traverse/Parallel

It's a bit more convoluted since we will have to install some things using, conda, then install parallel HDF5, mpi4py, and h5py. And then, we can install the rest of the functions via pip.

  1. conda env create -f summitenv.yml
  2. Check the documentation for the installation of Parallel HDF5 on the cluster, and subsequent installations of mpi4py, and h5py.
  3. pip install summitreq.yml

PYTHONSTARTUP

This repo contains a startup.py file that can be called when loading the python shell. If following line

export PYTHONSTARTUP=path/to/repo/startupfiles/python.py

is added to the ~/.bashrc file, Python will use the environment variable to load up the script. The script right now is set to load all of pyplot's and numpy's functions without prefix as well as all of lwsspy's functions.

This makes it possible to simply do small commands in Matlab style such as help(fakerelation) or plot(x,y,'o'), etc.

Autoreload modules before execution

In addition to the Python startup file. Ipython has the ability to reload modified modules on the fly. This is extremely convenient:

Simply run the line:

cp path/to/repo/startupfiles/ipython.ipy ~/.ipython/profile_default/startup/

To run the lines in ipython.ipy. The lines are the following:

# Activate autoreload
%load_ext autoreload
%autoreload 2

LWSSPY's Projects

lwsspy icon lwsspy

All the python functions I created and used overtime will live here.

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.