[jupyter] Re: What is the best way to git ignore Jupyter notebook outputs?

2018-05-13 Thread Joshua Ansell-McKinnon
Thanks Simon! I'll check it out.

On Sunday, May 13, 2018 at 7:43:48 PM UTC-7, Simon Biggs wrote:
>
> I can't claim it's the best way but I use the following:
>
> pip install nbstripout
> nbstripout --install
>

-- 
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 it, send an email 
to jupyter+unsubscr...@googlegroups.com.
To post to this group, send email to jupyter@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jupyter/cab9b662-bb2e-4928-9fa4-1ef58341c086%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[jupyter] Re: What is the best way to git ignore Jupyter notebook outputs?

2018-05-13 Thread Joshua Ansell-McKinnon
Thanks Simon! I'll check it out.

On Sunday, May 13, 2018 at 7:43:48 PM UTC-7, Simon Biggs wrote:
>
> I can't claim it's the best way but I use the following:
>
> pip install nbstripout
> nbstripout --install
>

-- 
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 it, send an email 
to jupyter+unsubscr...@googlegroups.com.
To post to this group, send email to jupyter@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jupyter/abdb6a5f-bc0b-486b-ba2a-4356b3cdfd10%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[jupyter] What is the best way to git ignore Jupyter notebook outputs?

2018-05-13 Thread Simon Biggs
I can't claim it's the best way but I use the following:

pip install nbstripout
nbstripout --install

-- 
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 it, send an email 
to jupyter+unsubscr...@googlegroups.com.
To post to this group, send email to jupyter@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jupyter/1a5afb5c-5e94-4c60-bfe1-8aefd0220077%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[jupyter] What is the best way to git ignore Jupyter notebook outputs?

2018-05-13 Thread Joshua Ansell-McKinnon
I want to be able to push my notebooks to github without the outputs? 

-- 
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 it, send an email 
to jupyter+unsubscr...@googlegroups.com.
To post to this group, send email to jupyter@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jupyter/f6d9ef14-833c-4a10-9227-e397fc599a00%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[jupyter] What is the best way go git ignore Jupyter notebook outputs?

2018-05-13 Thread Joshua Ansell-McKinnon
I want to be able to push my notebook to github, but not have my outputs 
show? 

-- 
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 it, send an email 
to jupyter+unsubscr...@googlegroups.com.
To post to this group, send email to jupyter@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jupyter/38574f33-2f57-4478-8547-7f2c5f99045f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[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 wrote:
>>
>> Thanks for that; is there anything similar for Jupyterhub? (And what, if 
>> any, is the jupyterhub extension mechanism? I'm still only dabbling round 
>> the edges of Jupyterhub - still stuck on trying to get it to work with 
>> Docker desktop kubernetes - 
>> https://groups.google.com/forum/#!topic/jupyter/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

 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 this group and stop receiving emails from it, send an email 
to jupyter+unsubscr...@googlegroups.com.
To post to this group, send email to jupyter@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jupyter/e13ffd01-4dd5-427d-97e5-a231d27b7d4f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[jupyter] Re: Searching over multiple Jupyter notebooks

2018-05-13 Thread Tony Hirst
Ooh, that's neat... but doesn't give a search engine like output? What I 
really need is a results listing that shows some context for the search 
hit; I struck on the cell as a convenient proxy for that.

--tony

On Friday, 11 May 2018 16:04:01 UTC+1, Grant Nestor wrote:
>
> You can also create a notebook to do this! 
>
> ```py
> import glob
>
> pattern = './**/*.ipynb'
> query = 'vdom'
>
> for filepath in glob.iglob(pattern, recursive=True):
> with open(filepath) as file:
> s = file.read()
> if (s.find(query) > -1):
> 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 notes here: 
>> https://blog.ouseful.info/2018/05/10/initial-sketch-searching-jupyter-notebooks-using-lunr/
>>
>> Comments welcome... I need to walk the dog and ponder the actual 
>> usefulness - or otherwise - of this now. Minimal working demo throws up all 
>> sorts of issues. COunterpoint of the grep solution is also really useful. A 
>> third point of comparison would be a sqlite/datasette or 
>> sqlite/scriptedForm search tool.
>>
>> --tony
>>
>> On Wednesday, 9 May 2018 16:42:32 UTC+1, Grant Nestor wrote:
>>>
>>> A simple solution is to open a terminal in JupyterLab/Jupyter Notebook 
>>> and run the following:
>>>
>>> grep --include='*.ipynb' --exclude-dir='.ipynb_checkpoints' -rliw . -e 
>>> 'search 
>>> query'
>>>
>>> This will search your Jupyter server root recursively for files that 
>>> contain the whole word (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:

 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 over reference/resource materials.

 I was wondering if anyone has looked at simple search solutions for 
 searching 
 over jupyter notebooks, eg by dropping them into a lunr.js index using 
 lunr.py, or adding them to sqlite (in which case, what sort of schema 
 did you use?).

 In first instance, I was thinking of just indexing the markdown cells 
 in each notebook, with a reference back to the original filepath. (I 
 think effective code search may be a whole other issue.) There are 
 also issues around whether to have views back into a complete 
 notebook, or link to nbconverted html notebooks vs live running 
 notebooks.

 V first steps in my thinking, just wondered if it's already work in p
 rogress somewhere?


 --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 it, send an email 
to jupyter+unsubscr...@googlegroups.com.
To post to this group, send email to jupyter@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jupyter/0181120d-c805-4542-a892-76f3966e8bc2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.