Coder Social home page Coder Social logo

skandanc / photonics-bootcamp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from byucamacholab/photonics-bootcamp

0.0 0.0 0.0 40.64 MB

The CamachoLab Photonics Bootcamp, with support from Google.

License: MIT License

TeX 0.67% Jupyter Notebook 99.27% Shell 0.06%

photonics-bootcamp's Introduction

Photonics Bootcamp

The CamachoLab Photonics Bootcamp, with support from Google.

This book can be viewed online.

Installation

If you wish to create a virtual Python environment for your book (recommended), you can do so:

conda:

conda create --name bootcamp python
conda activate bootcamp

virtualenv:

python3 -m venv bootcamp
source bootcamp/bin/activate

Then, install the required packages:

pip install --upgrade -r requirements.txt

Building the book

You can simply run from the toplevel directory

jb build book

The output will be located in book/_build/html. To serve it in your browser, navigate to that directory and start a simple Python server:

python -m http.server

Development

The majority of this book is written as Jupyter notebooks. Learn more about creating beautiful websites online at https://jupyterbook.org/en/stable/intro.html.

When writing notebooks, if including images, it is best to reference a web address instead of a relative file in the repository. This way, when the notebook is downloaded independently, the links and images will not be broken.

JupyterBook by default runs all the notebooks within the repository when generating the site. Because many of the notebooks contain lengthy simulations that we don't want to run on the deployment server, this behavior has been turned off. Therefore, when pushing new notebooks to the repository, you should have already run the notebooks from top to bottom in a fresh kernel to ensure all the outputs (plots and results) are present.

Deployment

By default, pushes or pull requests merged on "master" automatically trigger a build and deploy cycle.

Note that notebooks are only automatically executed remotely if there are any missing outputs for any cells. If you've run the notebooks locally when you've committed them, they will appear on the site as they are saved without rerunning.

Contributors

We welcome and recognize all contributions. You can see a list of current contributors in the contributors tab.

photonics-bootcamp's People

Contributors

ebangerter4 avatar skandanc avatar joelkartchner avatar 11of12 avatar rmcamacho avatar sequoiap avatar bailey5407 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.