Giter Site home page Giter Site logo

42-workshop's Introduction

42-workshop

Workshop material for 42 PyCharm Tips and Tricks, based on the PyCharm Guide playlist. Follow along at that URL. The material here is organized to match that sequence.

Install

  • Virtual environment based on Python 3.6+

    • $ python3 -m venv .venv
  • $ .venv/bin/pip install -r requirements.txt

Note

This workshop's examples use dataclasses. If you are using Python 3.6, this repo's requirements.txt includes the dataclasses backport.

Starting Point

  • This workshop (and the playlist) use some PyCharm Professional features (e.g. web, database, coverage)

  • "Step 0" is:

    • This repo, opened as a project, editable install (above)

    • PyCharm in default everything (theme, tool windows, toolbars, status bar, tabs)

    • Optional: Install and use Presentation Assistant plugin

  • Have the 42 PyCharm Tips and Tricks playlist open to follow along

  • Start on a branch

  • We're showing the default keymap on macOS

Usage

  • This project has a fortytwo package that can be imported

  • Each playlist step has a module with a number plus description as filename

  • Open the module for the step, read the docstring at the top, follow along

  • Each module can be run by clicking the green gutter play button beside the "run block" at the bottom

After

  • Delete maya as installed package

  • Disconnect database

Presenter

  • Start with tabs, tool bar, tool window bars, navigation bar, etc.

  • Presentation Assistant turned on

  • Good sized font

  • On a branch

  • Default theme

  • Make sure maya package isn't installed

42-workshop's People

Contributors

jugmac00 avatar pauleveritt avatar rileymshea avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

42-workshop's Issues

Python > 3.6 should not install the forked wired from the requirements

I followed the instructions from the website with Python 3.8.0 and got always this strange error message:

(env) โžœ  fortytwo git:(master) python s01_find_action.py 
Traceback (most recent call last):
  File "s01_find_action.py", line 17, in <module>
    from fortytwo import App, Greeter
  File "/home/janek/Repositories/42-workshop/fortytwo/__init__.py", line 4, in <module>
    from fortytwo import models
  File "/home/janek/Repositories/42-workshop/fortytwo/models.py", line 3, in <module>
    from wired.dataclasses import factory
ModuleNotFoundError: No module named 'wired.dataclasses'

In the end what solved the problem was to pip uninistall wired the wired-0.2 version from the requirements.txt (pointing to a forked wired at https://github.com/pauleveritt/wired). If I run after installing this forked version, pip install wired, I get wired-0.2.1 (a minor version ahead) installed, and everything works fine.

I think, it's confusing that following the tutorial (and/or installing the requirements.txt) leads to a non working configuration. There's a certainly a reason for the usage of the fork, but either it is deprecated over time or at least it doesn't matter for modern Python, does it? It would already be helpful to get a hint in the README about ๐Ÿค”

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.