fastai / fastpages

An easy to use blogging platform, with enhanced support for Jupyter Notebooks.
https://fastpages.fast.ai/
Apache License 2.0
3.53k stars 756 forks source link

Add support for launching notebooks in Deepnote #576

Closed jakubzitny closed 2 years ago

jakubzitny commented 3 years ago

New Feature: Deepnote Badge

Preview

Screen Shot 2021-08-20 at 22 00 19

This PR is inspired by #216, feel free to correct me if I missed something.

Example notebook in Deepnote: https://deepnote.com/project/fastpages-QBBzHgACTRe9w3frw8LAzw/%2F_notebooks%2F2020-02-21-introducing-fastpages.ipynb

Disclaimer: I am a developer at Deepnote, I am pushing this since some of our users requested this after migrating from Colab to Deepnote 🙂

jakubzitny commented 3 years ago

/preview

github-actions[bot] commented 3 years ago

A preview build of this branch has been generated for SHA: 1eccac14a3a103fbc9ae31daa153e252300562b5 and can be viewed live at: https://61200aceae278000de941425--fastpages.netlify.app

The current fastpages site built from master can be viewed for comparison here

jakubzitny commented 3 years ago

Any feedback or help with approving me as a first-time contributor, please @hamelsmu?

goodboychan commented 3 years ago

Awesome! Can I apply it in my custom environment?

jakubzitny commented 3 years ago

@goodboychan you mean Deepnote Custom Environment? Not currently, I'm sorry. This just picks up the .ipynb on the fastpages / github, and creates a new project with it. We're working on a possibility to use your Dockerfile in GH repo to build the custom env, but it'll take some time since it's not a priority. For now, I just suggest adding a hidden cell to the notebook that installs all required stuff. Or prepare your custom environment project in Deepnote and link that directly in your blogpost or page. Anyone who duplicates your existing Deepnote project with custom env will get that custom env automatically (cached).

@Dstiers1191 / @hamelsmu would it be possible to allow CI in this PR so we can see that everything is passing?

goodboychan commented 3 years ago

@jakubzitny No, I mean that I can test it on my fastpages. See the application like this

Sorry for confusion.

jakubzitny commented 3 years ago

Oh, sorry about that @goodboychan. I think you'd have to merge the upstream version of fastpages, or somehow rebase to it. Once this is merged of course. Not sure what was your process of creating your own instance, but I'd guess rebase will work.

jakubzitny commented 2 years ago

@Dstiers1191 / @hamelsmu thanks for the approval. Is there anything on our side that we can do to help get this merged?

hamelsmu commented 2 years ago

I'll look into this today or tommorow sorry for the delay

hamelsmu commented 2 years ago

/preview

github-actions[bot] commented 2 years ago

A preview build of this branch has been generated for SHA: 1eccac14a3a103fbc9ae31daa153e252300562b5 and can be viewed live at: https://61b0d1d6279f503838d9bc74--fastpages.netlify.app

The current fastpages site built from master can be viewed for comparison here

hamelsmu commented 2 years ago

LGTM thanks for the update!