-
-
Notifications
You must be signed in to change notification settings - Fork 581
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Interactive jsonschema demo running on notebooks.ai #538
Conversation
Codecov Report
@@ Coverage Diff @@
## master #538 /- ##
=======================================
Coverage 96.24% 96.24%
=======================================
Files 19 19
Lines 2398 2398
Branches 305 305
=======================================
Hits 2308 2308
Misses 77 77
Partials 13 13 |
1 similar comment
Codecov Report
@@ Coverage Diff @@
## master #538 /- ##
=======================================
Coverage 96.24% 96.24%
=======================================
Files 19 19
Lines 2398 2398
Branches 305 305
=======================================
Hits 2308 2308
Misses 77 77
Partials 13 13 |
@@ -0,0 1,3 @@ | |||
requirements: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this file get magically used somehow? I don't see anywhere here using it.
If so, can we update it for jsonschema 3
? I think everything above looks like it shouldn't require any changes to do so.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The demo.yml
file is automatically used by notebooks.ai while loading the Docker container. It's basically loading a base container Image and then installing all Python packages under "requirements".
I updated jsonschema
to version 3.0.1.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got it -- and is it supposed to be the equivalent of a requirements.txt
then?
Because you have pyrsistent
here, but that's not the only dependency (or transitive dependency) of jsonschema
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I also don't really see any docs linked anywhere on https://notebooks.ai -- where do they keep those?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @martinzugnoni! Polite ping on the above, I know life has gotten in the way for both of us :) but yeah curious to hear what you think.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @Julian, I'm very sorry about the late response. I've been super busy lately.
Requirements listed in the demo.yml
file are the libraries needed to run the DEMO.ipynb
notebook. It seems that just by installing jsonschema
the DEMO is not fully working (see screenshot below). That's why I also added pyrsistent
.
About notebooks.ai documentation, we are still working on it. We will probably link the documentation to the main website once it's done.
Do you know what command it runs to install the package? pyrsistent is
declared in jsonschema's install_requires
…On Fri, Apr 19, 2019, 14:13 Martin Zugnoni ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In demo.yml
<#538 (comment)>:
> @@ -0,0 1,3 @@
requirements:
Hey @Julian <https://github.com/Julian>, I'm very sorry about the late
response. I've been super busy lately.
Requirements listed in the demo.yml file are the libraries needed to run
the DEMO.ipynb notebook. It seems that just by installing jsonschema the
DEMO is not fully working (see screenshot below). That's why I also added
pyrsistent.
[image: image]
<https://user-images.githubusercontent.com/1155573/56437149-ba417c80-62b4-11e9-8f2a-195f0af73cd2.png>
About notebooks.ai documentation, we are still working on it. We will
probably link the documentation to the main website once it's done.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#538 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AACQQXQ5RTACBXRQBJTYRVLPRIDUNANCNFSM4G4GRALQ>
.
|
I've just checked and it's running In this case, it would run: |
Really odd... I could of course just merge and make believe I didn't see this, but it worries me about future dependencies and whether that's going to mean now keeping them in both places -- I'm fairly sure But like, installing
Will have a think. |
I agree @Julian. Don't worry, I will further investigate before we merge this. Will come back when I have any news. Thanks for reporting BTW. |
Awesome! Thanks! Let me know what you find. |
WTF! Now I can't reproduce the error I pasted above :/ I just removed pyrsistent from the |
Hah, well, glad it's working now at least. Does look like it's working here too! |
The last thing from me I think at this point is really just the styling or size of that button :D -- is there anything quick that could be done about that? If not, happy to merge I think at this point -- much appreciated of course! |
Thank @Julian That blue button is the default image we use everywhere. Feel free to propose a different button image if you want. I'm 100% open to any design change. In case this button is at least acceptable, we can move forward and merge it for now, until we work in a redesign. |
@martinzugnoni thanks for being so amenable! I think what rubs my design feathers a bit is probably just having such a big button on its own line, it's even bigger than the text introducing it. I think even just shrinking it by ~30% size-wise would look better visually, and even better would be possibly putting it underneath a small screenshot of the notebook? But even just the shrinking I think would be awesome. And really thanks again regardless, looks like a great project. |
Cool @Julian, appreciate your comments. What about now? Note that the notebook preview is a gif, which I think makes more sense to give the user a quick overview of how it will look like. |
I think the gif is returning a 404 -- might need to have that alongside directly here in the repo or something to make sure it stays up? getting close |
Fixed it, the previous link expired. Now I hosted on Github. |
Great, thanks! |
Hi @Julian, following our discussion here #506, this PR adds a link to the DEMO Notebook running on https://notebooks.ai/.
** Note that the link won't work until this PR is merged, because it looks for a DEMO.ipynb file which is still not present in Julian's repo. If you want to see how it will look like, you can take a look at it here
Anything here can be changed. Post your thoughts and we can iterate from there.