[PYTHON] Pymacs hello world

~/Documents/elisp/test/Pymacs/helloworld.py Save the following file as

~/Documents/elisp/test/Pymacs/helloworld.py


# -*- coding: utf-8 -*-
from Pymacs import lisp

def hello():
    lisp.insert("Hello from Python!")

def hello2(l):
    return l[0]+"pypy123"

def hello3(l):
    return [l[0]+"12pypy123",l[1]+"bbb"]

Do the following on elisp

pymacs-test-load.el


(eval-after-load "pymacs" 
'(add-to-list 'pymacs-load-path "~/Documents/elisp/test/Pymacs/"))

(pymacs-load "helloworld")

scratch And so on

pymacs-test-do.el


(helloworld-hello)

(helloworld-hello2 "aaa")
;;return "apypy123"

(helloworld-hello3 (list "aaa" "kkk"))
;;return  ("aaa12pypy123" "kkkbbb")

Recommended Posts

Pymacs hello world
Hello world
cython hello world
web2py memo: Hello World
hello world with ctypes
RabbitMQ Tutorial 1 ("Hello World!")
Hello, World with Docker
Hello World on Django
Django's first Hello World
Hello world with flask
Draw hello world with mod_wsgi
Until hello world with zappa
Programming language in "Hello World"
Hello World in GO language
Hello World (beginners) on Django
Python starting with Hello world!
Let's do "Hello World" in 40 languages! !!
Hello, world! With virtual CAN communication
Introduction to TensorFlow --Hello World Edition
Hello world! (Minimum Viable Block Chain)
[Note] Hello world output with python
cout << "Hello, World! \ N" in python
Hello World in Flask [Appropriate memo]
Code: 2 "Hello World" in "Choregraphe-Python script"
Hello World! By QPython with Braincrash
Python #Hello World for super beginners
Introduction to Ansible Part 1'Hello World !!'
[Python] Web application from 0! Hands-on (2) -Hello World-
Hello World and face detection with opencv-python 4.2
Hello World with Raspberry Pi + Minecraft Pi Edition
How to build Hello, World on #Nix
Hello world instead of localhost in Django
(For myself) Django_1 (Basic / Hello World / Template)
Flask tutorial (from installation to hello world)
How to display Hello world in python
Hello World! By QPython with Brainfu * k
Hello World and face detection with OpenCV 4.3 + Python
Python 1 person study session: 1st "Running Python ~" Hello world ""
From Kivy environment construction to displaying Hello World
Hello world with full features of Go language
Say hello to the world with Python with IntelliJ
Hello World with nginx + uwsgi + python on EC2
Flask Hello World cannot be displayed on VPS
Create a one-file hello world application with django
First python ① Environment construction with pythonbrew & Hello World !!
Create a "Hello World" (HTTP) server with Tornado
To myself as a Django beginner (3)-Hello world! ---