Golly and IPython

Has something gone haywire? Let us know about it!
Post Reply
User avatar
LaundryPizza03
Posts: 1819
Joined: December 15th, 2017, 12:05 am
Location: Unidentified location "https://en.wikipedia.org/wiki/Texas"

Golly and IPython

Post by LaundryPizza03 » August 13th, 2020, 1:59 am

IPython is a console for running Python commands. RLEs copied from IPython outputs don't translate correctly in Golly — you have to paste it somewhere else and then C&P into Golly. For example, if you run a series of IPython commands to print the following:

Code: Select all

# print('x = 2, y = 3, rule = B2a3n/S\n2o2$bo!')
x = 2, y = 3, rule = B2a3n/S
2o2$bo!
it comes out in Golly as

Code: Select all

x = 31, y = 2, rule = B3/S23
3bobobo2bobobo2b4obob7o$3o10b3o!

Code: Select all

x = 4, y = 3, rule = B3-q4z5y/S234k5j
2b2o$b2o$2o!
LaundryPizza03 at Wikipedia

The latest edition of new-gliders.db.txt and oscillators.db.txt have 35296 spaceships and 1451 oscillators from outer-totalistic rules. You are invited to help!

User avatar
rowett
Moderator
Posts: 2638
Joined: January 31st, 2013, 2:34 am
Location: UK
Contact:

Re: Golly and IPython

Post by rowett » August 13th, 2020, 2:56 am

You need to use File->Open Clipboard (Ctrl+Shift+O) rather than Paste.

User avatar
LaundryPizza03
Posts: 1819
Joined: December 15th, 2017, 12:05 am
Location: Unidentified location "https://en.wikipedia.org/wiki/Texas"

Re: Golly and IPython

Post by LaundryPizza03 » August 14th, 2020, 1:44 am

rowett wrote:
August 13th, 2020, 2:56 am
You need to use File->Open Clipboard (Ctrl+Shift+O) rather than Paste.
That didn't work.

My system is a macOS Catalina, if you are unable to reproduce it.

Code: Select all

x = 4, y = 3, rule = B3-q4z5y/S234k5j
2b2o$b2o$2o!
LaundryPizza03 at Wikipedia

The latest edition of new-gliders.db.txt and oscillators.db.txt have 35296 spaceships and 1451 oscillators from outer-totalistic rules. You are invited to help!

User avatar
bubblegum
Posts: 960
Joined: August 25th, 2019, 11:59 pm
Location: click here to do nothing

Re: Golly and IPython

Post by bubblegum » August 14th, 2020, 8:42 pm

LaundryPizza03 wrote:
August 14th, 2020, 1:44 am
rowett wrote:
August 13th, 2020, 2:56 am
You need to use File->Open Clipboard (Ctrl+Shift+O) rather than Paste.
That didn't work.

My system is a macOS Catalina, if you are unable to reproduce it.
Cmd+Shift+O.
Each day is a hidden opportunity, a frozen waterfall that's waiting to be realised, and one that I'll probably be ignoring
sonata wrote:
July 2nd, 2020, 8:33 pm
conwaylife signatures are amazing[citation needed]
anything

Post Reply