[jupyter] Locking Markdown cells

2017-02-02 Thread Tony Hirst
Is there an easy way of locking a markdown cell so that a user can't edit it, eg for the sharing of teaching materials? --tony -- You received this message because you are subscribed to the Google Groups "Project Jupyter" group. To unsubscribe from this group and stop receiving emails from

Re: [jupyter] Locking Markdown cells

2017-02-03 Thread Tony Hirst
to protect against users accidentally editing > something: someone determined to change it can simply remove that metadata > and then do as they like. > That would b fine for my use case... it's casual changes I want to defend against as much as anything. thanks --tony > On

Re: [jupyter] How do I convert html tables in my notebook to PDF?

2017-02-22 Thread Tony Hirst
I started exploring using pytablewriter ( https://github.com/thombashi/pytablewriter ) to generate markdown tables, but ended up instead opting for pandas .to_html() to generate tabular output for an output slidedeck. --tony On Sunday, 19 February 2017 18:21:43 UTC, Braun Brelin wrote: > >

Re: [jupyter] Re: Jupyter Notebook 5.0 beta 1

2017-02-17 Thread Tony Hirst
Thanks all for the replies. [This reply turned into a ramble over a coffee break! Not sure what point I was trying to make in the end... Apols for that...] Re: trying to log confusion, I'll try to keep notes on things I notice or that crop up in student / novice comments. We're about to do a

[jupyter] Re: Jupyter Notebook 5.0 beta 1

2017-02-16 Thread Tony Hirst
Looking at the notes - *We encourage users to start trying JupyterLab in preparation for a future transition * - I have a question re: the roadmap: - will Jupyter notebooks continue to be available as such once Jupyterlab is available? (could a jupyterlab instance be configured to just mimic a

[jupyter] Anythng like Moodle Coderunner as a Jupyter client?

2016-11-30 Thread Tony Hirst
Hi Just wondering if anyone has or is working on a Moodle question type, a bit like Coderunner - http://coderunner.org.nz/ - but using a Jupyter backend (i.e. something along the lines of a Jupyter client wrapped as a moodle plugin)? thanks --tony -- You received this message because you

[jupyter] Re: math expressions in Jupyter

2016-12-18 Thread Tony Hirst
Andrew Another way of getting notation into the notebook is via sympy, which means you can also evaluate expressions. I'm not sure how well sympy works with the python-markdown

[jupyter] Re: nbdime and Notebook menu (bundler?) options - diff between current notebook and checkpointed version

2017-04-11 Thread Tony Hirst
ng a new tracked changes notebook, and/or maybe using styling ideas from nbconvert <http://nbconvert.readthedocs.io/en/latest/customizing.html>? On Tuesday, 11 April 2017 17:53:17 UTC+1, Tony Hirst wrote: > > Having just come across support for custom bundler extensions > <http://

Re: [jupyter] nbdiff extension - checkpoint comparison from current notebook

2017-06-19 Thread Tony Hirst
> do this by visiting a simple URL. That should allow you to avoid the > `kernel.execute` and hard-coded ports. If you'd like to help out with that, > it would be awesome. > > -Min > > On Fri, Jun 2, 2017 at 8:45 PM, Tony Hirst <tony@gmail.com > > wrote: > >> I

Re: [jupyter] nbdime - cell keys

2017-06-21 Thread Tony Hirst
Wonderful - thanks... :-) Will have another look... --tony On Tuesday, 20 June 2017 15:25:14 UTC+1, vidartf wrote: > > Hi Tony, > > You've seem to have made decent progress. First off, the diff format > is documented here: > http://nbdime.readthedocs.io/en/latest/diffing.html Hope that can

[jupyter] nbdime - cell keys

2017-06-19 Thread Tony Hirst
Pondering generating notebooks from nbdime again (as per https://github.com/jupyter/nbdime/issues/251 ) I was wondering if there's a simple way of getting numeric cell key values from a notebook? eg if ai have a setup fn1="test1.ipynb" fn2="test2.ipynb" a = nbformat.read(fn1, as_version=4) b=

[jupyter] Re: Blocked cross origin API requests

2017-05-18 Thread Tony Hirst
Example error: Blocking Cross Origin API request for /api/contents. Origin: http://ec2-MYINSTANCE.eu-west-1.compute.amazonaws.com:35180, Host: notebooks On Thursday, 18 May 2017 18:41:28 UTC+1, Tony Hirst wrote: > > Hi > > > I'm trying to run an AWS EC2 instance built from a

[jupyter] Blocked cross origin API requests

2017-05-18 Thread Tony Hirst
Hi I'm trying to run an AWS EC2 instance built from a custom AWS AMI containing a freshly built jupyter notebook server, which throws an error: Blocking Cross Origin API request for /api/contents when I try to create a new notebook. Is this a setting I need to tweak in the AWS config

[jupyter] Re: Blocked cross origin API requests

2017-05-18 Thread Tony Hirst
And... the jupyer server is behind an nginx proxy which is providing an additional authentication layer --tony On Thursday, 18 May 2017 18:42:58 UTC+1, Tony Hirst wrote: > > Example error: > > Blocking Cross Origin API request for /api/contents. Origin: > http://ec2-MYINS

[jupyter] nbdiff extension - checkpoint comparison from current notebook

2017-06-02 Thread Tony Hirst
I still don't properly understand how notebook checkpointing works, but I started exploring an extension that would find the difference between the current notebook and the checkpointed version: https://gist.github.com/psychemedia/4a5137cf9a4eddba65c8ff673d19abf2 There's some hardcoded cruft

Re: [jupyter] Tmpnb vs Jupyterhub

2017-09-22 Thread Tony Hirst
Helm yet another thing new to me How do you tweak the config.yaml file to use the tmpauthenticator? --tony On Monday, 11 September 2017 20:50:20 UTC+1, Yuvi Panda wrote: > > We run a ~1500 student JupyterHub for our class at Berkeley > (data.berkeley.edu) based on https://z2jh.jupyter.org

[jupyter] Tmpnb vs Jupyterhub

2017-09-11 Thread Tony Hirst
Hi I'm trying to lobby my institution into setting up a hosted Jupyter notebook server to support a v small activity (2 notebooks, 15-30 mins per notebook) as part of a course serving maybe 1500 students. My gut feeling is to suggest tmpb because I assume that's the simplest thing to manage,

[jupyter] Re: Insert feedback or comment on a notebook

2017-09-09 Thread Tony Hirst
PS another option may be to use nbdime - but this would require students to run that and compare their submitted notebook to one returned by a marker. On Thursday, 7 September 2017 15:55:01 UTC+1, Johannes Feist wrote: > > Hi all, > > my students/collaborators now often send intermediate

Re: [jupyter] Tmpnb vs Jupyterhub

2017-09-11 Thread Tony Hirst
me I've done anything with Jupyterhub or Vagrant, so > don't take any of that as the best way to do things! > > Thomas > > On 11 September 2017 at 12:58, Tony Hirst <tony@gmail.com > > wrote: > >> Hi >> >> I'm trying to lobby my institution into s

[jupyter] Re: Insert feedback or comment on a notebook

2017-09-09 Thread Tony Hirst
We used to use a simple extension that allowed a commenter to add their own response cells to a notebook and then colour them (we also had coloured cells to define activities https://blog.ouseful.info/2014/10/08/edtech-and-ipython-notebooks-answer-reveals/ For feedback, we tutors selected

[jupyter] Re: Notebook advocacy job ads

2017-10-02 Thread Tony Hirst
And another one - Bioinformatics Training Developer University of Cambridge - Cancer Research UK Cambridge Institute http://www.jobs.ac.uk/job/BEM873/bioinformatics-training-developer/ On Monday, 2 October 2017 15:12:12 UTC+1, Tony Hirst wrote: > > By the by, I thought this recently post

[jupyter] Notebook advocacy job ads

2017-10-02 Thread Tony Hirst
By the by, I thought this recently posted job ad may be of interest to the group: University of Edinburgh, eLearning Officer Computational Notebooks http://www.jobs.ac.uk/job/BEQ108/elearning-officer-computational-notebooks/ I've popped together crude feed generator to scrape the jobs.ac.uk

Re: [jupyter] Building docker images with jupyter/repo2docker

2017-11-10 Thread Tony Hirst
7 at 4:45 PM Tim Head <bet...@gmail.com > > wrote: > >> On Mon, Nov 6, 2017 at 3:26 PM Tony Hirst <tony@gmail.com >> > wrote: >> >>> Having realised I can use jupyter/repo2docker rather than killing >>> binderhub (doh! Sorry:-( I was wondering

Re: [jupyter] Building docker images with jupyter/repo2docker

2017-11-10 Thread Tony Hirst
Head wrote: > > > > On Fri, Nov 10, 2017 at 11:40 AM Tony Hirst <tony@gmail.com > > wrote: > >> One more thing >> >> Is there a way to build from a branch rather than master? eg I don't see >> a --branch option? >> >> > Jupp

Re: [jupyter] Scrollytelling view for notebooks?

2017-12-13 Thread Tony Hirst
dden cells (likely with code or other implementation details) off to the > right. I am working on an extension <https://github.com/acrule/janus> > that plays with similar ideas. > > On Sunday, December 10, 2017 at 10:13:27 AM UTC-8, Tony Hirst wrote: >> >> I w

[jupyter] Running X11 apps via binderhub

2017-11-13 Thread Tony Hirst
Hi I was wondering if it's possible to run X11/novnc apps via binderhub, perhaps using something like the proxy tricks used to run RStudio? Example X11 container I've found elsewhere to run QGIS https://github.com/psychemedia/dockerfile-dit4c-container-qgis --tony -- You received this

Re: [jupyter] Building docker images with jupyter/repo2docker

2017-11-06 Thread Tony Hirst
ataScienceHandbook > > (If there is a argparse wizard present, we'd appreciate a fix that allows > you to do what I posted in the previous email) > > T > > On Mon, Nov 6, 2017 at 4:45 PM Tim Head <bet...@gmail.com > > wrote: > >> On Mon, Nov 6, 2

[jupyter] Building docker images with jupyter/repo2docker

2017-11-06 Thread Tony Hirst
Having realised I can use jupyter/repo2docker rather than killing binderhub (doh! Sorry:-( I was wondering if there is a simple way of just using repo2docker to build and name/tag an image on my machine, rather than building the image and running a container from it? eg something like

[jupyter] Re: Custom Environments

2017-12-01 Thread Tony Hirst
Would a magic approach work? eg https://github.com/catherinedevlin/ipython-sql On Friday, 1 December 2017 14:06:01 UTC, Jonathan Robie wrote: > > I am trying to understand how difficult it would be to set up a custom > environment for people querying syntax trees. Ideally, I would like to set

Re: [jupyter] Scrollytelling view for notebooks?

2017-12-10 Thread Tony Hirst
h about this and also supporting other HTML > slideshow frameworks with nbconvert slides (and eventually with RISE). > But never get enough time to start playing with the idea. > > Cheers. > > 2017-12-03 9:01 GMT-03:00 Tony Hirst <tony@gmail.com >: > >> Thinking about

[jupyter] Magic to embed maps in notebooks

2017-12-10 Thread Tony Hirst
Whilst trying to show folk how easy it was to embed interactive maps in notebooks using things like folium, I kept getting the response that it still required code familiarity which would be a blocker to some. So I wondered whether magic might be a way to try to simplify it. Example magic

[jupyter] Re: Magic to embed maps in notebooks

2017-12-12 Thread Tony Hirst
Okay - added layering - pass a map in as a variable name pointing to a map in the -b argument: x = %folium_map -m 52.0250,-0.7084,"My marker" %folium_map -b x -m 52.02,-0.708,"My other marker" On Tuesday, 12 December 2017 13:46:13 UTC, Tony Hirst wrote: >

[jupyter] Re: Magic to embed maps in notebooks

2017-12-12 Thread Tony Hirst
I keep forgetting to look to nteract... thx for reminder --tony On Monday, 11 December 2017 04:37:47 UTC, Lawrence D’Oliveiro wrote: > > On Monday, December 11, 2017 at 7:19:28 AM UTC+13, Tony Hirst wrote: >> >> Whilst trying to show folk how easy it was to embe

[jupyter] Scrollytelling view for notebooks?

2017-12-03 Thread Tony Hirst
Thinking about how the RISE plugin can be used to markup and present notebooks in a presentation mode using reveal.js, I wonder: has anyone looked at how to use metadata to markup a notebook and present the content in a "scrollytelling" mode, eg using something like

[jupyter] Jupyter notebook serverextension hello-world?

2018-05-14 Thread Tony Hirst
Is there a dummy helloworld extension anywhere that implements the basics of setting up a serverextension with a notebook tab UI (like the nbgrader formgrader tab, for example)? http://jupyter-notebook.readthedocs.io/en/stable/extending/handlers.html#writing-a-notebook-server-extension looks

Re: [jupyter] Jupyter notebook serverextension hello-world?

2018-05-14 Thread Tony Hirst
verextension with a notebook tab UI (like the > nbgrader formgrader tab, for example)? > > Not a dummy one but it will give you some ideas, I think: > https://github.com/Anaconda-Platform/nb_conda > > Hope it helps. > > 2018-05-14 9:02 GMT-03:00 Tony Hirst <tony@gmail.

[jupyter] Re: Searching over multiple Jupyter notebooks

2018-05-10 Thread Tony Hirst
ord (case-insensitive) "search query" and only return > the file names of matches. > > More info: > https://stackoverflow.com/questions/16956810/how-do-i-find-all-files-containing-specific-text-on-linux > > On Tuesday, May 8, 2018 at 6:07:02 AM UTC-7, Tony Hirst wrote: &g

[jupyter] Re: Custom Jupyterhub error pages

2018-05-10 Thread Tony Hirst
/SBvV1avnLtI ) --tony On Wednesday, 9 May 2018 16:24:19 UTC+1, Grant Nestor wrote: > > Here is an example extension that does exactly that: > https://github.com/afshin/custom404-extension > > On Friday, April 13, 2018 at 3:28:20 AM UTC-7, Tony Hirst wrote: >> >> Hi &

[jupyter] Re: Searching over multiple Jupyter notebooks

2018-05-13 Thread Tony Hirst
print(filepath) > ``` > > It gets the job done and it's flexible and you're already using it! > > On Thursday, May 10, 2018 at 10:40:46 AM UTC-7, Tony Hirst wrote: >> >> Thanks for that. I also started dabbling with a simple lunr.js solution - >> initial

[jupyter] Re: Custom Jupyterhub error pages

2018-05-13 Thread Tony Hirst
Great - thanks; will give it a spin :-) On Friday, 11 May 2018 15:46:51 UTC+1, Grant Nestor wrote: > > There is!: > https://github.com/jupyterhub/configurable-http-proxy#custom-error-pages > > On Thursday, May 10, 2018 at 10:56:27 AM UTC-7, Tony Hirst wrot

[jupyter] Searching over multiple Jupyter notebooks

2018-05-08 Thread Tony Hirst
Hi I'm working in an edu context, with notebooks being used to deliver interactive teaching materials, and one of the things we know students do is search ove r reference/resource materials. I was wondering if anyone has looked at simple search solutions for searching over jupyter notebooks,

Re: [jupyter] Button that controls another jupyter cell

2018-05-22 Thread Tony Hirst
As a slight aside to this, there is this extension - https://github.com/micahscopes/nbmultitask - that allows (control of) multitasking / mutliple threads spawned from within a single notebook --tony On Tuesday, 22 May 2018 09:19:48 UTC+1, Fabien Lafont wrote: > > Wow, indeed Travis that's a

[jupyter] Jupyterhub under Docker desktop kubernetes

2018-05-01 Thread Tony Hirst
I've started looking at Jupyterhub for first time (I think under all sorts of misapprehensions about how it works!) and thought I'd try to get it running a local desktop version of kubernetes as supported by Docker CE Edge. I can get as far as the "Container start" page but then it hangs. I

[jupyter] Re: Custom Jupyterhub error pages

2018-05-01 Thread Tony Hirst
Seem to be here: https://github.com/jupyterhub/jupyterhub/tree/master/share/jupyterhub/templates On Friday, 13 April 2018 11:28:20 UTC+1, Tony Hirst wrote: > > Hi > > I need to put together some customised (and branded) error pages for a > Jupyterhub deployment - is there a cus

[jupyter] Re: Create a _repr_javascript_ method that creates and shows a HTML5 canvas with a figure

2018-01-14 Thread Tony Hirst
Loosely related to this, a simple cell magic for writing to an HTML 2D canvas element: https://github.com/psychemedia/ipython_magic_canvas --tony On Friday, 20 January 2017 13:38:46 UTC, Steven Silvester wrote: > > Right, I meant that a subset of HTML could be used in the html_repr as a >

[jupyter] Re: What other language kernels (other than Python) support jupyter widgets?

2018-09-06 Thread Tony Hirst
The JuniperKernel (an R kernel alternative to IRkernel) also looks like it runs xwidgets: https://github.com/JuniperKernel/JuniperKernel --tony On Monday, 3 September 2018 23:01:35 UTC+1, Sylvain Corlay wrote: > > Hi Christian, > > (Responding on mailing list for the record even though we also

[jupyter] Custom Jupyterhub error pages

2018-04-13 Thread Tony Hirst
Hi I need to put together some customised (and branded) error pages for a Jupyterhub deployment - is there a customisable error page template somewhere? --thanks --tony -- You received this message because you are subscribed to the Google Groups "Project Jupyter" group. To unsubscribe from

Re: [jupyter] Using notebooks as informal packages - (non)exportable code cells

2018-03-24 Thread Tony Hirst
antage of being immediately visible/obvious (as opposed to > metadata). > > Best, > Johannes > > On Thu, Mar 22, 2018 at 11:23 AM Tony Hirst <tony@gmail.com > > wrote: > >> Recipes such as >> http://jupyter-notebook.readthedocs.io/en/stable/examples/N

Re: [jupyter] Using notebooks as informal packages - (non)exportable code cells

2018-03-24 Thread Tony Hirst
visible/obvious (as opposed to > metadata). > > Best, > Johannes > > On Thu, Mar 22, 2018 at 11:23 AM Tony Hirst <tony@gmail.com > > wrote: > >> Recipes such as >> http://jupyter-notebook.readthedocs.io/en/stable/examples/Notebook/Importing%20Notebo

[jupyter] Using notebooks as informal packages - (non)exportable code cells

2018-03-22 Thread Tony Hirst
Recipes such as http://jupyter-notebook.readthedocs.io/en/stable/examples/Notebook/Importing%20Notebooks.html provide a means for importing the contents of a notebook as a module, but they do so by executing all code cells. My development notebooks tend to have functions defined as well as

[jupyter] Re: is it possible to use widgets with iRkernel?

2018-10-18 Thread Tony Hirst
Is there a Binder config anywhere for running Juniper in Binderhub? thanks --tony On Thursday, 18 October 2018 13:32:59 UTC+1, Dave Hirschfeld wrote: > > https://github.com/JuniperKernel/JuniperKernel > > On Thursday, 18 October 2018 01:19:05 UTC+10, Ariel Balter wrote: >> >> Pretty much that's

[jupyter] Re: Building a scheduler for notebook based reports

2018-11-13 Thread Tony Hirst
PayPal's PPExtensions is supposed to include a scheduler (uses Apache Airflow) "soon"... https://ppextensions.readthedocs.io/en/latest/ppextensions-scheduler/scheduler/ A cynic would say they made the announcement about the open source goodness of these extensions for the PR, without having to

[jupyter] Custom containers on Jupyterhub / k8s

2018-09-28 Thread Tony Hirst
We've been using Jupyterhub on k8s (following the zero2 guide) using one of the official Jupyter docker containers as the base container. Under the hood, what does Jupyterhub actually require in the container for it to be successfully launched by Jupyterhub? Is there an example repo or set of

[jupyter] Re: Logging notebook activity (redux)

2018-12-21 Thread Tony Hirst
A recent post [ https://medium.com/adyen/building-our-data-science-platform-with-spark-and-jupyter-1894c33e6dd0 ] describing the adoption of Jupyter notebooks by Adyen mentioned some logging issues: *We added instrumentation across all levels of data analysis workflows — from looking when

[jupyter] Re: Building Jupyter visualizations using dual canvases youtube video

2018-12-01 Thread Tony Hirst
Interesting.. So the idea is that you can build an interactive in the first tab/canvas panel, then grab a snapshot of it that appears in the second? If there is an interactive where the view is dependent on the mouse cursor position, eg in the Simple Python Example notebook, the image color

[jupyter] Re: ScriptedForms v0.10.0 released

2018-11-22 Thread Tony Hirst
Latest release hasn't appeared on Github releases page - https://github.com/SimonBiggs/scriptedforms/releases ? On Thursday, 22 November 2018 06:27:50 UTC, Simon Biggs wrote: > > http://scriptedforms.com.au > >- Quickly create live-update GUIs for Python packages using Markdown >and a

Re: [jupyter] Jupyter notebook branding in edu

2018-09-11 Thread Tony Hirst
.com/jupyter/governance/blob/master/trademarks.md > 2: The Jupyter Trademark is owned by NumFOCUS, and TM infringement issues > by their attorney. > > On Tue, 11 Sep 2018 at 11:35, Tony Hirst > > wrote: > >> Hi >> >> We've been using Jupyter noteb

[jupyter] Using Docker Mulistage Builds to bring proxyable apps into Jupyter notebook container

2019-03-22 Thread Tony Hirst
In passing, I came up with this recipe the other day to expose a browser UId app via a notebook server / jupyter-server-proxy. Original app was a nasty build in a docker container that resulted in a node app and all supporting files in an app/ directory. To add the app a notebook container, I

[jupyter] Re: Jupyterhub r shiny support

2019-02-07 Thread Tony Hirst
There's an example in the Binder example repos of launching from Binderhub into a SHiny app: https://github.com/binder-examples/r http://mybinder.org/v2/gh/binder-examples/r/master?urlpath=shiny/bus-dashboard/ --tony On Wednesday, 6 February 2019 20:35:06 UTC, harshi...@gmail.com wrote: > >

Re: [jupyter] Re: Working implementation of WYSIWYG rich text cell in Jupyter notebook...

2019-08-06 Thread Tony Hirst
Just for completeness (?) on this thread in sense of cross-referring to other attempts at notebook wywiswg tools, I'm not sure how the https://github.com/genepattern/jupyter-wysiwyg extension handles things (it seems to drop HTML into an enabled markdown cell, which can get really messy after