1. PaperMC server

 

2. FruitJuice plugin

FruitJuice - Paper Plugin | Hangar (papermc.io)

 

FruitJuice - Paper Plugin | Hangar

Enables a python/scratch API to minecraft - Download the Paper Plugin FruitJuice by jdeast on Hangar

hangar.papermc.io

 

3. Python venv 에 mcpi 설치

pip install mcpi

 

4. 예제

from mcpi.minecraft import Minecraft

mc = Minecraft.create()
mc.postToChat("Hello World!")

 

 

GitHub - gasbugs/Minecraft-To-be-a-architect: Minecraft, To be a architect

 

pip, venv, jupyter 설치

$ sudo apt install python3-pip
$ sudo apt install python3.12-venv


SSD 에 venv 생성
$ cd /mnt/evo860
$ mkdir /mnt/evo860/python_venv
$ python3 -m venv ./python_venv

venv 에서의 설치로, "./pip" 
$ cd ./python_venv/bin
$ ./pip install jupyter


$ ./jupyter-notebook --generate-config
$ vi ~/.jupyter/jupyter_notebook_config.py



c.ServerApp.ip = '0.0.0.0'
c.ServerApp.port = 8889
c.ExtensionApp.open_browser = False

'Tools' 카테고리의 다른 글

Minecraft + Python  (0) 2024.09.29
VS Code  (0) 2021.09.30
Jupyter Notebook: Web Browser (Microsoft Edge), Start-up foler, 'Bad File Descriptor' error  (0) 2021.07.05


1. Extensions
   Python

2. Command Pallete (Ctrl+Shift+P)
    keyboard way to accomplish any task in VS Code
    [Extension Name]:[Action]
   ex. Python: Select Interpreter


[Web Browser (Microsoft Edge)]

 

1. Run 'Anaconda Prompt (Anaconda3)'

 

2. jupyter notebook --generate-config

 

3. Edit 'C:\Users\[username]\.jupyter\jupyter_notebook_config.py'

## Specify what command to use to invoke a web browser when opening the notebook.
#  If not specified, the default browser will be determined by the `webbrowser`
#  standard library module, which allows setting of the BROWSER environment
#  variable to override it.
#  Default: ''
c.NotebookApp.browser = '"C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe" %s' # Microsoft Edge
#c.NotebookApp.browser = '"C:\Program Files\Google\Chrome\Application\chrome.exe" %s' # Chrome

 

 

[Start-up folder]

 

1. Run 'Anaconda Prompt (Anaconda3)'

 

2. jupyter notebook --generate-config

 

3. Edit 'C:\Users\[username]\.jupyter\jupyter_notebook_config.py'

   (use '/' instead of '\')

## The directory to use for notebooks and kernels.
#  Default: ''
c.NotebookApp.notebook_dir = 'C:/Workspace'

 

4. Go to 'C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Anaconda3 (64-bit)'

 

5. 'Jupyter Notebook (Anaconda3)' > (R) > (S) > Remove '%HOMEPATH%'

   'Jupyter Notebook (Anaconda3)' > (R) > (T) > Remove '"%USERPROFILE%/"'

C:\ProgramData\Anaconda3\python.exe C:\ProgramData\Anaconda3\cwp.py C:\ProgramData\Anaconda3 C:\ProgramData\Anaconda3\python.exe C:\ProgramData\Anaconda3\Scripts\jupyter-notebook-script.py "%USERPROFILE%/"

 

['Bad file descripter' error]

 

1. Run 'Anaconda Prompt (Anaconda3)' as admin

pip uninstall pyzmq
pip install pyzmq

 

'Tools' 카테고리의 다른 글

Minecraft + Python  (0) 2024.09.29
Jupyter Notebook: pip, venv, jupyter  (0) 2024.09.29
VS Code  (0) 2021.09.30

+ Recent posts