is there any way to share ipynb as a web service?

85 views
Skip to first unread message

Bishi

unread,
Jan 19, 2017, 12:08:03 AM1/19/17
to Project Jupyter
Hello all.

I would like to know is there any way to share ipynb as a web service?

For example, I have a completed script with some configureable parameters, I want to share this script to someone else, so they can get the latest result via running that script and I don't need to write a web APP as I'm not familar with writing JS.

I found ipywidgets which is very useful for the users to input text/int/date as the parameters. But I'm not sure how to convert this to a web service.

I think the users should not add/modify the existing cells in the ipynb file I shared. They can just run the existing cells. So it will be a good web service.

So, could you tell me there's anything wrong about my thoughts?

If what I think is right, how can I prevent the users to add/modify the existing cells? I think maybe modify some jupyter source will work. But I don't know where to start.

Thanks.

Peter Parente

unread,
Jan 20, 2017, 7:42:45 AM1/20/17
to Project Jupyter
Hi Bishi,

Both https://github.com/jupyter-incubator/dashboards_server and https://github.com/oreillymedia/thebe come to mind for your use case. Temper your expectations though: both require some amount of setup and neither has much active development going on at the moment.

Cheers,
Pete

Bishi

unread,
Jan 23, 2017, 3:14:01 AM1/23/17
to Project Jupyter
Hello Peter.

Thanks for your kindness help.

I found both of them works for my needs. But I aslo found them a little complicated for my simple task.

After reading the source of some jupyter extensions, I write a very simple extension, it just do the following:

1. hide menu/toolbar

2. disable ipynb save and cell edit

As my ipynb file would share to people trusted, I didn't do any server-side validation. Maybe I'll do it in future.

Peter Parente

unread,
Jan 25, 2017, 8:18:54 PM1/25/17
to Project Jupyter
HI Bishi,

Thanks for sharing what you did as your solution. It's great that you were able to write an extension to fit your needs.

Cheers,
Pete
Reply all
Reply to author
Forward
0 new messages