반응형
반응형

python에서 pygame 실행해보기 aliens  https://www.pygame.org/wiki/GettingStarted

 

anaconda 설치하고 가상환경 들어가서 파이썬 버전(3.10 이상) 확인하고 

pygame 인스톨 후 실행. 

-- pygame 외계인 게임실행하기 

anaconda shell에서 

> pip install -U pygame

> python -m pygame.examples.aliens

https://www.pygame.org/wiki/GettingStarted

(p_pygame) PS D:\_py_project\> conda deactivate
(base) PS D:\_py_project\> conda activate p_pygame
(p_pygame) PS D:\_py_project\> pip install -U pygame
Requirement already satisfied: pygame in c:\programdata\anaconda3\envs\p_pygame\lib\site-packages (2.4.0)
(p_pygame) PS D:\_py_project\> python -m pygame.examples.aliens

반응형
반응형

https://sdc-james.gitbook.io/onebook/2./2.1./2.1.5.-visual-studio-code

 

3.1.5. Visual Studio Code 설치 - OneBook(Python & Deep Learning)

Visual Studio Code(약자 VS Code)는 편리한 프로그래밍 에디터 입니다. Visual Studio Code (VS Code)는 크로스 플랫폼 소스 편집기로서 윈도우즈, 리눅스, Mac OS 에서 무료로 사용할 수 있습다. Visual Studio Code를

sdc-james.gitbook.io

Visual Studio Code(약자 VS Code)는 편리한 프로그래밍 에디터 입니다. Visual Studio Code (VS Code)는 크로스 플랫폼 소스 편집기로서 윈도우즈, 리눅스, Mac OS 에서 무료로 사용할 수 있습다. Visual Studio Code를 설치한 후 여러 Extension들을 설치할 수 있는데, 파이썬 Extension을 설치하면, 파이썬 프로그래밍과 디버깅을 할 수 있습니다.
다음 링크에서 다운로드 할 수 있습니다.
User Installer는 현재 로그온된 사용자 계정에만 설치를 하며, System Installer는 Windows 전체 사용자 계정에서 사용할 수 있도록 설치(관리자 권한 필요)합니다. 저는 System Installer 버전을 다운로드하여 설치하겠습니다.
기본 옵션으로 설치를 끝까지 진행 합니다. 마지막에는 자신이 편리한대로 설정해 줍니다.
 
VSCode 가 설치 완료되면 필요한 Extension 들을 설치해 줍니다. Visual Studio Code를 설치한 후 여러 Extension들을 설치할 수 있는데, 파이썬 Extension을 설치하면, 파이썬 프로그래밍과 디버깅을 할 수 있습니다.
좌측 상단에 python을 입력하면 여러가지 Extension들이 나타납니다. 이중 Python Extension Pack 을 설치하면 Python, MagicPython, Visual Studio InteliCode, Django 등이 한꺼번에 설치됩니다. 이렇게 파이썬 Extension을 설치 완료하면 파이썬 프로그래밍을 진행할 수 있습니다. korean language pack 도 설치해 줍니다.
Pylance, Material Theme, Material Icon Theme, Prettier 등 필요한 Extension 들을 설치해 줍니다.
Pylance : Fast, feature-rich language support for Python
Prettier : 파일 저장시 알아서 포매쇼에 맞게 소스 코드 정
 
이제는 Visual Studio Code의 기본 터미널이 Windows의 Power Shell로 설정되어 있기 때문에 약간의 수정이 필요합니다.
이 기본 터미널의 종류를 cmd 또는 cmdGit Bash로 변경하면 오류없이 실행이 가능합니다. 먼저 Ctrl + Shift + P (컨트롤 + 쉬프트 + P) 키를 눌러 Command Palette를 열고 Terminal: Select Default Shell 을 입력합니다.
VS Code에서 파이썬 코드를 작성하기 위해서는 확장자 .py 를 가진 임의의 파이썬 파일을 생성하면 됩니다. [File] 메뉴에서 [New File]을 눌러 새 파일을 만들면 됩니다. 새 파일을 만드는 것보다 C:\ 에 'korAI'라는 새로운 작업 폴더를 만들어 줍니다.
이 작업 폴더에 새 hello.py 파일을 생성하고 에디터에서 코드를 작성합니다. 그리고 해당 폴더에 저장 합니다.
print("Hello World")
 
코드를 실행하기 전에 인터프리터를 선택해야 합니다. Ctrl + Shift + P (컨트롤 + 쉬프트 + P) 키를 눌러 Command Palette를 열고 Python: Select Interpreter 을 입력합니다.
여기에 가상 환경 설정에서 지정한 koreait 폴더내의 인터프리터를 지정합니다.
koreait 가상환경을 activate 합니다.
코드 작성 완료 후 프로그램을 실행하기 위해서는 [Debug] 메뉴의 [Start Debugging (F5)] 나 [Start without Debugging (Ctrl+F5)]를 누르면 됩니다.
특히 F5를 눌러 디버깅 모드로 실행하면, 로컬변수, 콜스택 등 여러 디버깅 정보를 이용할 수 있으며, Step Over, Step Into 등의 디버거 컨트롤을 사용할 수 있다.
파이썬 파일에 코드를 작성한 후, VS Code 에디터에서 우측 마우스 버튼을 클릭 [Run Python File in Terminal] 메뉴를 선택하면 하단에 터미날 창이 생기고 파이썬 프로그램을 인터프리터와 함께 실행해 준다.
 
VS Code 권장 Extension Pack
 
반응형
반응형

python, anaconda 가상환경에서 파이썬 버전 확인 및 변경

 

VScode에서 인터프리터 연결이 제대로 안될때. 버전이 낮아서 인터프리터 실행못할때 확인 필요

 

가상환경이름을 p_pygame  이라고 가정하고.

 

0. conda  activate (가상환경명) : 가상환경 실행.

1. python -V : 파이썬 버전 확인.

2. conda search python : 사용 가능한 python list 확인.

3. conda install python=x.x.x : 입력 버전으로 파이썬 버전이 변경됨.

4. conda deactivate

5. conda activate p_pygame   : 가상환경 실행.

6. python -V : 변경된 파이썬 버전을 확인할 수 있음.

반응형
반응형

 

아나콘다 다운로드 및 설치

 

가상환경 들어가서 pip update 필요하다. 

conda update pip

현재 (base) 환경에서 사용중인 파이썬 버전을 확인하려면 다음 명령을 실행합니다.

PIP는 Python Package Index (PyPI) 저장소로부터 패키지를 다운받아 설치 및 관리해주는 패키지 매니저 입니다. pip install [패키지 이름]의 형태로 패키지를 설치하면 됩니다.
Pip를 최신 버전으로 업그레이드 하려면 다음 명령을 실행합니다.
(base) PS D:\_py_project> python --version

(base) PS D:\_py_project> python -m pip install --upgrade pip

아나콘다 패키지 업데이트

(base) C:\Users\사용자계정>conda -–version

(base) C:\Users\사용자계정>conda update --all

 

pygame :  https://www.pygame.org/wiki/GettingStarted

 

GettingStarted - pygame wiki

Pygame Installation Pygame requires Python; if you don't already have it, you can download it from python.org. It's recommended to run the latest python version, because it's usually faster and has better features than the older ones. Bear in mind that pyg

www.pygame.org

 

아나콘다 설치 모르겠으면 기본 설치로~ https://docs.python.org/3/using/windows.html#installation-steps

 

4. Using Python on Windows

This document aims to give an overview of Windows-specific behaviour you should know about when using Python on Microsoft Windows. Unlike most Unix systems and services, Windows does not include a ...

docs.python.org

 

반응형
반응형

35 Knowledge base tools for developers in 2023

https://medium.com/promyze/35-knowledge-base-tools-for-developers-in-2023-2584d1ea6bbb

 

35 Knowledge base tools for developers in 2023

In 2023, there should be no debate about the added value of great documentation in software projects. Software engineers should have access…

medium.com

 

  • 엔지니어가 도구의 UI에서 문서를 작성하는 Wiki와 유사한 도구 (예: Notion, Confluence, …)
  • 예 를 들어 코드 분석 및 온보딩 세션(예:프로미즈);
  • 질문/답변 플랫폼과 같은 커뮤니케이션 도구(예: Teams용 StackOverflow, …)
  • 개발자가 일반적으로 마크다운으로 문서를 작성하면 모든 마법이 일어나는 생성된 위키 도구(예: ReadTheDocs, …)

Acreom

Capture notes, break down issues, track your progress, create a knowledge base.

AnswerHub

Empowering developers and teams to learn, share, and succeed through online communities and knowledge sharing.

AppFlowy

Open Source Notion Alternative

Archbee

Build better product documentation — faster

Bit.ai

Next-Gen Document Collaboration Platform for Teams!

BookStack

(Open Source) BookStack is a simple, self-hosted, easy-to-use platform for organizing and storing information.

ClickUp

Save time with the all-in-one productivity platform that brings teams, tasks, and tools together in one place.

Coda

The all-in-one doc for teams.

CodeStream

New Relic CodeStream is a free open-source extension for VS Code, Visual Studio, and JetBrains.

Confluence

Confluence is your remote-friendly team workspace where knowledge and collaboration meet.

Daux.io

(OpenSource) The Easiest Way To Document Your Project.

Developerhub.io

All-in-One Platform for Online Documentation.

Docusaurus

(OpenSource) Build optimized websites quickly, focus on your content.

Flarum

(Open Source) Forums made simple. Modern, fast, and free!

Forem

(Open Source) Forem is an open source platform for building modern, independent, and safe communities.

GitBook

Where software teams break knowledge silos. (We use it at Promyze for our public documentation)

GitHub Pages

Websites for you and your projects.

Hugo

(OpenSource) The world’s fastest framework for building websites.

Jekyll

Transform your plain text into static websites and blogs.

mdBook

Static site generator from Markdown files.

MkDocs

(Open Source) Project documentation with Markdown.

Notion

The all-in-one workspace — for your tasks, notes, wikis, and calendar.

Notaku

Build a full-featured Docs website in minutes, using Notion as CM

Nuclino

A modern, simple, and blazingly fast way to collaborate — bring knowledge, docs, and projects together in one place.

Papyrs

The easiest way to create an online for your company.

Read The Docs

(Open Source) Read the Docs simplifies software documentation by automating building, versioning, and hosting of your docs for you.

SkyDocs

(OpenSource) SkyDocs is a lightweight static documentation builder with MarkDown.

Slab

Build a culture of knowledge-sharing today.

Sphinx

(OpenSource) Sphinx makes it easy to create intelligent and beautiful documentation.

Stack Overflow For Teams

Knowledge sharing and collaboration without distractions.

Swimm

Documentation Platform Built for Engineers.

TechDocs

Spotify’s docs-like-code plugin for Backstage.

Tettra

The best way to organize and share knowledge with your teammates.

Wiki.js

(OpenSource) The most powerful and extensible open source Wiki software

Promyze

Connect Developers’ Knowledge and share best coding practices, fully integrated in developers tools.

That’s all, folks; we hope that post gave you an overview of the current landscape of the knowledge base tools for software developers.

Among the ones quoted above, at Promyze, we use Notion to gather material such as procedures to create new releases of our IDE extensions. We use GitBook to publish the user documentation of our platform. Finally, we use our tool Promyze internally to raise new coding standards continuously. We bring these standards directly in IDEs & during code reviews since we consider this is the moment developers need this knowledge. You don’t code with a Wiki opened in a tab.

For each kind of documentation, you must define who should update it, when, and how other engineers will be notified of this change.

 

반응형
반응형

https://js.wiki/

 

Wiki.js

Install anywhere Works on virtually any platform and is compatible with either PostgreSQL, MySQL, MariaDB, MS SQL Server or SQLite!

js.wiki

가장 강력 하고
확장 가능한 오픈 소스 Wiki 소프트웨어


Wiki.js의 아름답고 직관적인 인터페이스를 사용하여 문서 작성을 즐겁게 만드십시오 !

네이버에 검색해봤더니 ㅋㅋㅋ 

ㅋㅋㅋ

 

반응형

+ Recent posts