Freywa wrote: ↑January 7th, 2020, 8:04 am
dvgrn wrote: ↑January 7th, 2020, 7:27 am
I've cloned the Shinjuku repo, of course, but right now I don't know if it will take me minutes, hours, or days of looking through the codebase, to figure out what script to run to turn those "best Shinjuku steps" into a Golly pattern that I can inspect.
- Open the Terminal in the Shinjuku repository.
- from shinjuku.synthtools import *
- For each Shinjuku line I have posted type r("xxx"), replacing xxx with the line. An RLE representing the component will be printed out.
Thanks, this looks like a good start! But is it possible for you to start your walkthrough a few steps earlier than the above?
There are some key unstated assumptions here, somewhat along the lines of April's
"Run the notebooks. Run all the cells from beginning to end. The beauty will show." ... all of which sounds good -- but as a Jupyter newbie I don't know what any of it means, so still have not seen the beauty.
Due Diligence: Just Start Trying Stuff
However... beggars can't be choosers, so my first job is to make a good effort -- try some random things and see if they might be what you're intending. My guess would be that a "Terminal" is a Jupyter terminal, though I don't absolutely know that for sure.
It ended up looking easier to install Anaconda than to get JupyterLab working by cloning the Git repository. So I installed Anaconda, and now have an apparently functional JupyterLab.
Here's what happens so far:
1) From a Windows 10 Start menu, I try
Anaconda3 > Jupyter Notebook
2) A very promising browser window pops up, where I can choose
New > Terminal
3) A slightly worrisome second browser window appears, reporting
http://localhost:8888/terminals/1 -- a Windows PowerShell command prompt.
4) I'm not sure if this is the kind of Terminal I'm supposed to be looking at, but I go ahead and try
cd C:\repos\Shinjuku, then
5) I try typing
from shinjuku.synthtools import *, as instructed, and I get
Code: Select all
At line:1 char:1
+ from shinjuku.synthtools import *
+ ~~~~
The 'from' keyword is not supported in this version of the language. + CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : ReservedKeywordNotAllowed
... So I figure that's the wrong kind of terminal.
Now I try Anaconda Navigator, which freezes on a "Loading applications..." icon for five minutes but eventually does start up. I find a "Launcher" with another nice promising button that says "Terminal", which opens up a "Terminal 1" tab with a different color, white instead of black... but it still says "Windows PowerShell", and still gives the same error message when I try to follow the above instructions.
Try More Random Stuff
Okay, so maybe I shouldn't be doing this in a Terminal at all? It looks like Python code, so maybe I should open a Console window instead. Now I don't get an error on that
import line, once I figure out to hit Shift+Enter and not just Enter. That's vaguely promising, but I'm not at all hopeful yet, because I haven't found anywhere I can tell this Console window where my Shinjuku repository is.
However, I try to maintain a degree of optimism, and I type
Code: Select all
r("xp2_08kkm0ml2y7o0gzggw1011y1sy1hg3z0346y1sy51074z43c2y7mm0mkk8zyc343+1>17 -6/8 -5 8 2//@0b9 -4>xp2_0gy98e1e88gz2251y0gggy0330311z8e13y4gggy0c871z0g88c0ccy78ak4zw1130f9")
And pretty much as expected, I get
Code: Select all
---------------------------------------------------------------------------
NameError Traceback (most recent call last)
<ipython-input-1-aff0cfff0560> in <module>
----> 1 r("xp2_08kkm0ml2y7o0gzggw1011y1sy1hg3z0346y1sy51074z43c2y7mm0mkk8zyc343+1>17 -6/8 -5 8 2//@0b9 -4>xp2_0gy98e1e88gz2251y0gggy0330311z8e13y4gggy0c871z0g88c0ccy78ak4zw1130f9")
NameError: name 'r' is not defined
Now, of course this is all silly, and being a reasonably competent tech-y kind of person, I'm probably capable of figuring out what I'm really supposed to be doing, eventually. But I'd still really appreciate a walkthrough that starts a little closer to the beginning and defines terms a little more carefully.
Time To Do Something Else For A While
Meanwhile, the next step will be to open those Jupyter notebooks in Shinjuku/docs and see if I can make the "Run all the cells..." instructions work.
EDIT: On Windows, the files I can browse to via Anaconda Navigator are limited to what's inside my user directory, since I chose the recommended install option "Just me" rather than "All users". But I have my Shinjuku repository under
C:/repos/Shinjuku, so I can't get to the /docs subfolder that way.
... That's awkward, but obviously solvable. It's a (fairly pointless) security limitation of Anaconda Navigator,
apparently. Easy workaround: go to
Anaconda Prompt, type
cd c:\repos\, then
jupyter notebook. Just mentioning this in case anyone else tries to follow this path of getting Shinjuku working via Anaconda on Windows. (So far I'm not sure I'd recommend it.)
EDIT2:
The Jupyter notebooks in
Shinjuku/doc open for me just fine, but when I try to run the cells I get various "Module not found" errors, and "NameError: name 'lt' is not defined", and so on. The notebooks intially have a blank space where LifeViewer is supposed to be, but when I run the relevant cell, the blank space disappears, and various error messages appear.
Again, none of this is surprising, because I haven't put LifeViewer and lifelib in the right places relative to these Shinjuku Jupyter notebooks I'm trying to run. I'm perfectly aware that this is something that has to be done, but I haven't found any explanation of how to do it. A step-by-step walkthrough would be very much appreciated.