Slide 1

Slide 1 text

Tomoko Furuki @komo_fr @komo-fr Let’s explore PEPs with NetworkX!

Slide 2

Slide 2 text

#BTFM +BQBO !" ✈ 14 hours I’m from Japan

Slide 3

Slide 3 text

Let’s explore PEPs with NetworkX! Tomoko Furuki @komo_fr @komo-fr

Slide 4

Slide 4 text

Motivation There are so many PEPs! (490~) • Beginners don’t know
 which one to read. • Important PEP? • What topics? I wanted a map to read PEPs. $ % %

Slide 5

Slide 5 text

Idea& citation relationship •Important papers are often cited 
 from other papers. •There are also citation relationships
 among PEPs. ✨ ✨

Slide 6

Slide 6 text

Idea& citation relationship PEP 8 Style Guide for Python PEP 20 The Zen of Python

Slide 7

Slide 7 text

Idea& citation relationship PEP 8 Style Guide for Python PEP 20 The Zen of Python PEP 257 Docstring Conventions

Slide 8

Slide 8 text

Idea& citation relationship Network Analysis PEP 8 Style Guide for Python PEP 20 The Zen of Python PEP 257 Docstring Conventions

Slide 9

Slide 9 text

Method & Package Network Analysis •a method to analyze
 relationships among elements •e.g. citation relation, friend relation NetworkX •Python package for complex networks.

Slide 10

Slide 10 text

PEP citation network color: status of PEP (e.g. Accepted, Rejected …) size: number of other PEPs citing that PEP

Slide 11

Slide 11 text

PEP citation network color: status of PEP (e.g. Accepted, Rejected …) size: number of other PEPs citing that PEP the PEP most cited from other PEPs (

Slide 12

Slide 12 text

PEP citation network color: status of PEP (e.g. Accepted, Rejected …) size: number of other PEPs citing that PEP Quiz

Slide 13

Slide 13 text

Which PEP is most cited from other PEPs? A. PEP 1: PEP Purpose and Guidelines B. PEP 8: Style Guide for Python Code C. PEP 302: New Import Hooks

Slide 14

Slide 14 text

Which PEP is most cited from other PEPs? A. PEP 1: PEP Purpose and Guidelines B. PEP 8: Style Guide for Python Code C. PEP 302: New Import Hooks )Please rise your hand! *

Slide 15

Slide 15 text

A. PEP 1: PEP Purpose and Guidelines B. PEP 8: Style Guide for Python Code C. PEP 302: New Import Hooks )Please rise your hand! * Which PEP is most cited from other PEPs?

Slide 16

Slide 16 text

A. PEP 1: PEP Purpose and Guidelines B. PEP 8: Style Guide for Python Code C. PEP 302: New Import Hooks )Please rise your hand! * Which PEP is most cited from other PEPs?

Slide 17

Slide 17 text

A. PEP 1: PEP Purpose and Guidelines B. PEP 8: Style Guide for Python Code C. PEP 302: New Import Hooks )Please rise your hand! * Which PEP is most cited from other PEPs?

Slide 18

Slide 18 text

Answer (PEP ???

Slide 19

Slide 19 text

Answer ( 21 PEPs refer to PEP8 PEP 8 Style Guide for Python Code + PEP 302: New Import Hooks (15 PEPs) + PEP 484: Type Hints (15 PEPs) , PEP 426: Metadata for Python Software 
 Packages 2.0 (13 PEPs) Jupyter Notebook: https://github.com/komo-fr/EuroPython2019_LT BTPG+VOF

Slide 20

Slide 20 text

PEP citation network color: status of PEP (e.g. Accepted, Rejected …) size: number of other PEPs citing that PEP -

Slide 21

Slide 21 text

Rejected Switch Statement PEP 225: Elementwise/Objectwise Operators PEP 3103: A Switch/Case Statement -

Slide 22

Slide 22 text

-

Slide 23

Slide 23 text

The 8000-series PEPs 1&1 1ZUIPO-BOHVBHF (PWFSOBODF

Slide 24

Slide 24 text

The 8000-series PEPs 1&1 1&1 1&1 1ZUIPO-BOHVBHF (PWFSOBODF

Slide 25

Slide 25 text

This is maybe a group about “New Python language governance”…?

Slide 26

Slide 26 text

Community Detection (Clustering) . • Louvain algorithm • Vincent D. Blondel, et al. "Fast unfolding of communities in large networks" J. Stat. Mech: theory and experiment 2008.10 (2008): P10008. • python-louvain package • https://pypi.org/project/python-louvain/

Slide 27

Slide 27 text

Result and others…

Slide 28

Slide 28 text

Group A-03: Packaging? • PEP 241 / 314 / 345 / 426 / 566: 
 Metadata for Python Software Packages / v1.1 / 1.2 / 2.0 / 2.1 • PEP 427 / 491:
 The Wheel Binary Package 
 Format 1.0 / 1.9 • PEP 440:
 Version Identification and Dependency Specification • PEP 381:
 Mirroring infrastructure for PyPI
 
 and more … 37 PEPs

Slide 29

Slide 29 text

Group A-10: Process and Documents? • PEP 8000-series • PEP 1:
 PEP Purpose Guidelines • PEP 12:
 Sample reStructuredText PEP Template • PEP 257:
 Docstring Conventions
 
 and more … 26 PEPs

Slide 30

Slide 30 text

Interactive Visualization (alpha) https://github.com/komo-fr/pep_map_site

Slide 31

Slide 31 text

• Slide:
 https://speakerdeck.com/ komofr/lets-explore-peps- with-networkx • Web Page:
 https://github.com/komo-fr/ pep_map_site • Jupyter Notebook: 
 https://github.com/komo-fr/ EuroPython2019_LT Thank you for listening! @komo_fr @komo-fr " Conference: Sep.16(Mon) - 17(Tue) 5JDLFU IUUQTQZDPOKQDPOOQBTTDPN FWFOU 8FC IUUQTQZDPOKQ Venue: Tokyo, Japan " ɹ* will upload until this weekend! /