Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python3 | |
# Via: https://github.com/python/cpython/blob/main/Tools/scripts/pindent.py | |
# See also: https://stackoverflow.com/a/118744/454773 | |
# This file contains a class and a main program that perform three | |
# related (though complimentary) formatting operations on Python | |
# programs. When called as "pindent -c", it takes a valid Python | |
# program as input and outputs a version augmented with block-closing | |
# comments. When called as "pindent -d", it assumes its input is a |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import nbformat | |
def flake8_report_insertion(report_file, overwrite=False, tags=True): | |
"""Parse flake8 report file into notebook output cells.""" | |
# Read in report file generate as eg: | |
# nbqa flake8 notebooks/*.ipynb > flake8_reports.txt | |
with open(report_file, 'r') as f: | |
lines = f.read().splitlines() |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
```{r, cache = F, echo = F, message=F} | |
# Allow knitr to continue to execute even in the presence of errors | |
knitr::opts_chunk$set(error = TRUE) | |
knitr::opts_chunk$set(fig.path = "images/creating-road-book-") | |
knitr::opts_chunk$set(engine.path = list(python = '/usr/local/bin/python3')) | |
options(rgl.useNULL = TRUE, | |
rgl.printRglwidget = TRUE) | |
``` | |
# Creating A Road Book |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.