SimonBiggs / scriptedforms

Quickly create live-update GUIs for Python packages using Markdown and simple HTML elements.
Apache License 2.0
508 stars 34 forks source link

0.9.1dev3 released #239

Closed SimonBiggs closed 6 years ago

SimonBiggs commented 6 years ago

@robmarkcole @OxygenLithium

I've released a new dev version. This one contains the new packages released from the JupyterLab team. I'd be keen if you guys could download and run this version through its paces. Let me know if you find any issues.

There's been quite a few improvements in these dev releases. I'm tempted to make a full release soon. So let me know how you go.

Cheers, Simon

olivercrask commented 6 years ago

Will it be available in releases, or just download from the repository?

robmarkcole commented 6 years ago

@OxygenLithium its the latest commit https://github.com/SimonBiggs/scriptedforms/commit/8ddcacac565d3b55ebfca69eaa66d86eebdeaa20 Download the zip to use

robmarkcole commented 6 years ago

@SimonBiggs with jupyterlab==0.32.0rc0 and scriptedforms==0.9.1.dev3 when running a scriptedform I just see a blank page.

image

olivercrask commented 6 years ago

0.32.0

olivercrask commented 6 years ago

I've got a blank page too using 0.32.0

SimonBiggs commented 6 years ago

I've actually released it on pypi so you can run "pip install --pre scriptedforms" probably best to uninstall it first then reinstall with the pre tag.

On Sat., 14 Apr. 2018, 12:07 am Oli Crask, notifications@github.com wrote:

I've got a blank page too using 0.32.0

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/SimonBiggs/scriptedforms/issues/239#issuecomment-381146753, or mute the thread https://github.com/notifications/unsubscribe-auth/AGQVe1ykt0ru7YPAptrQsrM7iKJTQ3yTks5toLEwgaJpZM4TTXJi .

SimonBiggs commented 6 years ago

To make it easier to try the dev versions I have been releasing them on pypi with the dev tag.

On Sat., 14 Apr. 2018, 6:34 am Simon Biggs, mail@simonbiggs.net wrote:

I've actually released it on pypi so you can run "pip install --pre scriptedforms" probably best to uninstall it first then reinstall with the pre tag.

On Sat., 14 Apr. 2018, 12:07 am Oli Crask, notifications@github.com wrote:

I've got a blank page too using 0.32.0

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/SimonBiggs/scriptedforms/issues/239#issuecomment-381146753, or mute the thread https://github.com/notifications/unsubscribe-auth/AGQVe1ykt0ru7YPAptrQsrM7iKJTQ3yTks5toLEwgaJpZM4TTXJi .

SimonBiggs commented 6 years ago

Or you can download the zip from here:

https://pypi.org/project/scriptedforms/0.9.1.dev3/

On Sat., 14 Apr. 2018, 6:42 am Simon Biggs, mail@simonbiggs.net wrote:

To make it easier to try the dev versions I have been releasing them on pypi with the dev tag.

On Sat., 14 Apr. 2018, 6:34 am Simon Biggs, mail@simonbiggs.net wrote:

I've actually released it on pypi so you can run "pip install --pre scriptedforms" probably best to uninstall it first then reinstall with the pre tag.

On Sat., 14 Apr. 2018, 12:07 am Oli Crask, notifications@github.com wrote:

I've got a blank page too using 0.32.0

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/SimonBiggs/scriptedforms/issues/239#issuecomment-381146753, or mute the thread https://github.com/notifications/unsubscribe-auth/AGQVe1ykt0ru7YPAptrQsrM7iKJTQ3yTks5toLEwgaJpZM4TTXJi .

SimonBiggs commented 6 years ago

And regards to the JupyterLab version required. I've actually compiled in the jupyterlab javascript packages. So you technically don't even need jupyterlab on your machine.

It's just that under the hood a lot of machinery has changed.

On Sat., 14 Apr. 2018, 6:45 am Simon Biggs, mail@simonbiggs.net wrote:

Or you can download the zip from here:

https://pypi.org/project/scriptedforms/0.9.1.dev3/

On Sat., 14 Apr. 2018, 6:42 am Simon Biggs, mail@simonbiggs.net wrote:

To make it easier to try the dev versions I have been releasing them on pypi with the dev tag.

On Sat., 14 Apr. 2018, 6:34 am Simon Biggs, mail@simonbiggs.net wrote:

I've actually released it on pypi so you can run "pip install --pre scriptedforms" probably best to uninstall it first then reinstall with the pre tag.

On Sat., 14 Apr. 2018, 12:07 am Oli Crask, notifications@github.com wrote:

I've got a blank page too using 0.32.0

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/SimonBiggs/scriptedforms/issues/239#issuecomment-381146753, or mute the thread https://github.com/notifications/unsubscribe-auth/AGQVe1ykt0ru7YPAptrQsrM7iKJTQ3yTks5toLEwgaJpZM4TTXJi .

olivercrask commented 6 years ago

Thanks. I've installed it on my home PC. How do you use it haha?

SimonBiggs commented 6 years ago

ScriptedForms? Just the same as normal. There's heaps of little improvements that should fix up the issues you were having with start sections, and also with the variable handler not being defined.

But there's also the added complexity of a lot of JavaScript dependencies being updated.

Or are you asking how to have ScriptedForms inside JupyterLab?

On Sat., 14 Apr. 2018, 6:51 am Oli Crask, notifications@github.com wrote:

Thanks. I've installed it on my home PC. How do you use it haha?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/SimonBiggs/scriptedforms/issues/239#issuecomment-381257532, or mute the thread https://github.com/notifications/unsubscribe-auth/AGQVe8Qkq1XET3pPZoIYNxJva2QATqGUks5toQ_pgaJpZM4TTXJi .

olivercrask commented 6 years ago

How to use it inside JupyterLab I meant, yes

SimonBiggs commented 6 years ago

Given the JupyterLab pull request hasn't yet been accepted the steps are many. But doable.

git clone https://github.com/SimonBiggs/jupyterlab.git
cd jupyterlab
git checkout allow-angular-templates
pip install -e .
jlpm install

cd ../
git clone https://github.com/SimonBiggs/scriptedforms.git
cd scriptedforms/scriptedforms
jlpm
jlpm build 
jlpm pip:install
jupyter labextension install .

change to directory where your forms are and run

jupyter lab

On Sat., 14 Apr. 2018, 6:54 am Simon Biggs, mail@simonbiggs.net wrote:

ScriptedForms? Just the same as normal. There's heaps of little improvements that should fix up the issues you were having with start sections, and also with the variable handler not being defined.

But there's also the added complexity of a lot of JavaScript dependencies being updated.

Or are you asking how to have ScriptedForms inside JupyterLab?

On Sat., 14 Apr. 2018, 6:51 am Oli Crask, notifications@github.com wrote:

Thanks. I've installed it on my home PC. How do you use it haha?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/SimonBiggs/scriptedforms/issues/239#issuecomment-381257532, or mute the thread https://github.com/notifications/unsubscribe-auth/AGQVe8Qkq1XET3pPZoIYNxJva2QATqGUks5toQ_pgaJpZM4TTXJi .

SimonBiggs commented 6 years ago

Just wrote out those instructions on my phone from my head, so let me know if you have issues.

On Sat., 14 Apr. 2018, 7:01 am Simon Biggs, mail@simonbiggs.net wrote:

Given the JupyterLab pull request hasn't yet been accepted the steps are many. But doable.

git clone git@github.com:SimonBiggs/jupyterlab.git
cd jupyterlab
git checkout allow-angular-templates
pip install -e .
jlpm install

cd ../
git clone git@github.com:SimonBiggs/scriptedforms.git
cd scriptedforms/scriptedforms
jupyter labextension install .

change to directory where your forms are and run

jupyter lab

On Sat., 14 Apr. 2018, 6:54 am Simon Biggs, mail@simonbiggs.net wrote:

ScriptedForms? Just the same as normal. There's heaps of little improvements that should fix up the issues you were having with start sections, and also with the variable handler not being defined.

But there's also the added complexity of a lot of JavaScript dependencies being updated.

Or are you asking how to have ScriptedForms inside JupyterLab?

On Sat., 14 Apr. 2018, 6:51 am Oli Crask, notifications@github.com wrote:

Thanks. I've installed it on my home PC. How do you use it haha?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/SimonBiggs/scriptedforms/issues/239#issuecomment-381257532, or mute the thread https://github.com/notifications/unsubscribe-auth/AGQVe8Qkq1XET3pPZoIYNxJva2QATqGUks5toQ_pgaJpZM4TTXJi .

SimonBiggs commented 6 years ago

In JupyterLab if the form ends with the extension .form.md it will open in ScriptedForms by default. If the extension is just .md then you'll need to right click and open with ScriptedForms.

On Sat., 14 Apr. 2018, 7:02 am Simon Biggs, mail@simonbiggs.net wrote:

Just wrote out those instructions on my phone from my head, so let me know if you have issues.

On Sat., 14 Apr. 2018, 7:01 am Simon Biggs, mail@simonbiggs.net wrote:

Given the JupyterLab pull request hasn't yet been accepted the steps are many. But doable.

git clone git@github.com:SimonBiggs/jupyterlab.git
cd jupyterlab
git checkout allow-angular-templates
pip install -e .
jlpm install

cd ../
git clone git@github.com:SimonBiggs/scriptedforms.git
cd scriptedforms/scriptedforms
jupyter labextension install .

change to directory where your forms are and run

jupyter lab

On Sat., 14 Apr. 2018, 6:54 am Simon Biggs, mail@simonbiggs.net wrote:

ScriptedForms? Just the same as normal. There's heaps of little improvements that should fix up the issues you were having with start sections, and also with the variable handler not being defined.

But there's also the added complexity of a lot of JavaScript dependencies being updated.

Or are you asking how to have ScriptedForms inside JupyterLab?

On Sat., 14 Apr. 2018, 6:51 am Oli Crask, notifications@github.com wrote:

Thanks. I've installed it on my home PC. How do you use it haha?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/SimonBiggs/scriptedforms/issues/239#issuecomment-381257532, or mute the thread https://github.com/notifications/unsubscribe-auth/AGQVe8Qkq1XET3pPZoIYNxJva2QATqGUks5toQ_pgaJpZM4TTXJi .

olivercrask commented 6 years ago

oh my bad, I thought when you said including the new packages from the jupyter team that meant they had added angular-templates.. did think that was surprisingly quick!

Will try the manual way for fun anyway

SimonBiggs commented 6 years ago

@robmarkcole can you install from pypi and let me know how you go?

SimonBiggs commented 6 years ago

:) @OxygenLithium makes sense. I can see how that can be misinterpreted. Yeah it'll be a while before the manual method won't be required.

olivercrask commented 6 years ago

Just so you know, I installed from pypi just prior and it was successful. What's the navigation pane for (in the new dev version, not jupyterlab)?

SimonBiggs commented 6 years ago

Ahh did you just run "scriptedforms" without writing a form name after it?

That takes you to the "docs". At some point that will be live documentation. ScriptedForms will default to there if you don't write a form name after it.

On Sat., 14 Apr. 2018, 7:09 am Oli Crask, notifications@github.com wrote:

Just so you know, I installed from pypi just prior and it was successful. What's the navigation pane for?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/SimonBiggs/scriptedforms/issues/239#issuecomment-381261244, or mute the thread https://github.com/notifications/unsubscribe-auth/AGQVewf1J5uA5h_rYQTtewbKIViTXARTks5toRQKgaJpZM4TTXJi .

SimonBiggs commented 6 years ago

... the docs aren't ready yet, but once the improvements + bug fixes settle down that will need to be my next priority

On Sat., 14 Apr. 2018, 7:14 am Simon Biggs, mail@simonbiggs.net wrote:

Ahh did you just run "scriptedforms" without writing a form name after it?

That takes you to the "docs". At some point that will be live documentation. ScriptedForms will default to there if you don't write a form name after it.

On Sat., 14 Apr. 2018, 7:09 am Oli Crask, notifications@github.com wrote:

Just so you know, I installed from pypi just prior and it was successful. What's the navigation pane for?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/SimonBiggs/scriptedforms/issues/239#issuecomment-381261244, or mute the thread https://github.com/notifications/unsubscribe-auth/AGQVewf1J5uA5h_rYQTtewbKIViTXARTks5toRQKgaJpZM4TTXJi .

olivercrask commented 6 years ago

I see! 👍

SimonBiggs commented 6 years ago

Any luck with the jupyterlab extension install?

On Sat., 14 Apr. 2018, 7:17 am Oli Crask, notifications@github.com wrote:

I see! 👍

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/SimonBiggs/scriptedforms/issues/239#issuecomment-381262792, or mute the thread https://github.com/notifications/unsubscribe-auth/AGQVe1jqK2FdvqBIxOYN3OEhj6Q4n8ixks5toRXPgaJpZM4TTXJi .

SimonBiggs commented 6 years ago

Also, with the docs, it's the sort of thing that if you're going a long and think of something that could really help explain some part ScriptedForms usage, if you raised an issue for it that would be awesome.

On Sat., 14 Apr. 2018, 7:56 am Simon Biggs, mail@simonbiggs.net wrote:

Any luck with the jupyterlab extension install?

On Sat., 14 Apr. 2018, 7:17 am Oli Crask, notifications@github.com wrote:

I see! 👍

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/SimonBiggs/scriptedforms/issues/239#issuecomment-381262792, or mute the thread https://github.com/notifications/unsubscribe-auth/AGQVe1jqK2FdvqBIxOYN3OEhj6Q4n8ixks5toRXPgaJpZM4TTXJi .

robmarkcole commented 6 years ago

@SimonBiggs OK scriptedforms-0.9.1.dev3 installed on my MAC OK.

RE the lab extension:

Robins-MacBook-Air:Github robincole$ sudo git clone git@github.com:SimonBiggs/jupyterlab.git
Password:
Cloning into 'jupyterlab'...
The authenticity of host 'github.com (192.30.253.113)' can't be established.
RSA key fingerprint is SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'github.com,192.30.253.113' (RSA) to the list of known hosts.
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
SimonBiggs commented 6 years ago

Ahh thanks for that. I've changed the link in the instructions from ssh to https:

https://github.com/SimonBiggs/scriptedforms/issues/239#issuecomment-381259695

That should fix that issue.

robmarkcole commented 6 years ago

@SimonBiggs OK got the extension installed:

Robins-MacBook-Air:example robincole$ jupyter labextension list
JupyterLab v0.32.0rc0
Known labextensions:
   app dir: /anaconda3/share/jupyter/lab
@simonbiggs/scriptedforms
        @simonbiggs/scriptedforms v0.9.1-dev3  enabled  OK*

   local extensions:
        @simonbiggs/scriptedforms: /Users/robincole/Documents/Github/scriptedforms/scriptedforms

Now with the examples directory, from within lab I right click on detailed.md and select open with scriptedforms and I see:

image

image

SimonBiggs commented 6 years ago

Hmmm that's odd. That seems like something to do with the python ScriptedForms install. Can you try pip uninstall scriptedforms and then running pip install -e . In the development ScriptedForms directory?

robmarkcole commented 6 years ago

OK uninstalled and reinstalled as per your instructions, on restarting jupyter lab and running the detailed.md I see the same error as before

SimonBiggs commented 6 years ago

Could you try running in a different directory. As in, not inside the scriptedforms directory at all. Maybe your documents folder?

robmarkcole commented 6 years ago

OK no errors, but appears to hang on startup: image

SimonBiggs commented 6 years ago

That's inside JupyterLab, does it hang outside of jupyterlab?

On Sun., 15 Apr. 2018, 5:51 pm Robin, notifications@github.com wrote:

OK no errors, but appears to hang on startup: [image: image] https://user-images.githubusercontent.com/11855322/38776146-2f98213a-408a-11e8-806a-a65531218fec.png

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/SimonBiggs/scriptedforms/issues/239#issuecomment-381387531, or mute the thread https://github.com/notifications/unsubscribe-auth/AGQVe_JpZw6YhT1Uz2R08W-R_BLr3BpBks5tovwPgaJpZM4TTXJi .

SimonBiggs commented 6 years ago

And it's important to screenshot the JavaScript console also.

Ctrl shift I in chrome

On Sun., 15 Apr. 2018, 6:47 pm Simon Biggs, mail@simonbiggs.net wrote:

That's inside JupyterLab, does it hang outside of jupyterlab?

On Sun., 15 Apr. 2018, 5:51 pm Robin, notifications@github.com wrote:

OK no errors, but appears to hang on startup: [image: image] https://user-images.githubusercontent.com/11855322/38776146-2f98213a-408a-11e8-806a-a65531218fec.png

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/SimonBiggs/scriptedforms/issues/239#issuecomment-381387531, or mute the thread https://github.com/notifications/unsubscribe-auth/AGQVe_JpZw6YhT1Uz2R08W-R_BLr3BpBks5tovwPgaJpZM4TTXJi .

SimonBiggs commented 6 years ago

https://developers.google.com/web/tools/chrome-devtools/console/

On Sun., 15 Apr. 2018, 6:48 pm Simon Biggs, mail@simonbiggs.net wrote:

And it's important to screenshot the JavaScript console also.

Ctrl shift I in chrome

On Sun., 15 Apr. 2018, 6:47 pm Simon Biggs, mail@simonbiggs.net wrote:

That's inside JupyterLab, does it hang outside of jupyterlab?

On Sun., 15 Apr. 2018, 5:51 pm Robin, notifications@github.com wrote:

OK no errors, but appears to hang on startup: [image: image] https://user-images.githubusercontent.com/11855322/38776146-2f98213a-408a-11e8-806a-a65531218fec.png

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/SimonBiggs/scriptedforms/issues/239#issuecomment-381387531, or mute the thread https://github.com/notifications/unsubscribe-auth/AGQVe_JpZw6YhT1Uz2R08W-R_BLr3BpBks5tovwPgaJpZM4TTXJi .

robmarkcole commented 6 years ago

OK it did start eventually, but appears to be an error in simple.md:

image

detailed.md works fine:

image

SimonBiggs commented 6 years ago

Ahh, that's just the way the simple.md was built. Those forms are designed to be used with the installed "example" package. I'll need to rework those anyway once JupyterLab works because they are probably more confusing than helpful.

On Sun., 15 Apr. 2018, 6:51 pm Robin, notifications@github.com wrote:

OK it did start eventually, but appears to be an error in simple.md:

[image: image] https://user-images.githubusercontent.com/11855322/38776674-929595bc-4092-11e8-8e88-0ecf34928f7c.png

detailed.md works fine:

[image: image] https://user-images.githubusercontent.com/11855322/38776670-8693faec-4092-11e8-9144-9e1451bebe8c.png

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/SimonBiggs/scriptedforms/issues/239#issuecomment-381390706, or mute the thread https://github.com/notifications/unsubscribe-auth/AGQVe8efkYXYzSugnGzc2-vTidtKKotaks5towocgaJpZM4TTXJi .

SimonBiggs commented 6 years ago

So no big issues were found with the dev version so 0.9.1 is released:

248