{"action":"created","issue":{"url":"https://api.github.com/repos/brian-team/brian2/issues/420","labels_url":"https://api.github.com/repos/brian-team/brian2/issues/420/labels{/name}","comments_url":"https://api.github.com/repos/brian-team/brian2/issues/420/comments","events_url":"https://api.github.com/repos/brian-team/brian2/issues/420/events","html_url":"https://github.com/brian-team/brian2/pull/420","id":59696845,"number":420,"title":"Tutorial","user":{"login":"thesamovar","id":2903870,"avatar_url":"https://avatars.githubusercontent.com/u/2903870?v=3","gravatar_id":"","url":"https://api.github.com/users/thesamovar","html_url":"https://github.com/thesamovar","followers_url":"https://api.github.com/users/thesamovar/followers","following_url":"https://api.github.com/users/thesamovar/following{/other_user}","gists_url":"https://api.github.com/users/thesamovar/gists{/gist_id}","starred_url":"https://api.github.com/users/thesamovar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thesamovar/subscriptions","organizations_url":"https://api.github.com/users/thesamovar/orgs","repos_url":"https://api.github.com/users/thesamovar/repos","events_url":"https://api.github.com/users/thesamovar/events{/privacy}","received_events_url":"https://api.github.com/users/thesamovar/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/brian-team/brian2/labels/in%20progress","name":"in progress","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-03-03T20:01:37Z","updated_at":"2015-03-04T17:03:06Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/brian-team/brian2/pulls/420","html_url":"https://github.com/brian-team/brian2/pull/420","diff_url":"https://github.com/brian-team/brian2/pull/420.diff","patch_url":"https://github.com/brian-team/brian2/pull/420.patch"},"body":"OK, I wrote two tutorials now, one on neurons and one on synapses. We should probably have a few more but that's a pretty good start. I think the tutorials are good to merge (and future tutorials can be added directly to master I think), but this branch also has the new ``start_scope`` functionality. We should probably add some tests for that before merging."},"comment":{"url":"https://api.github.com/repos/brian-team/brian2/issues/comments/77198519","html_url":"https://github.com/brian-team/brian2/pull/420#issuecomment-77198519","issue_url":"https://api.github.com/repos/brian-team/brian2/issues/420","id":77198519,"user":{"login":"mstimberg","id":1381982,"avatar_url":"https://avatars.githubusercontent.com/u/1381982?v=3","gravatar_id":"","url":"https://api.github.com/users/mstimberg","html_url":"https://github.com/mstimberg","followers_url":"https://api.github.com/users/mstimberg/followers","following_url":"https://api.github.com/users/mstimberg/following{/other_user}","gists_url":"https://api.github.com/users/mstimberg/gists{/gist_id}","starred_url":"https://api.github.com/users/mstimberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mstimberg/subscriptions","organizations_url":"https://api.github.com/users/mstimberg/orgs","repos_url":"https://api.github.com/users/mstimberg/repos","events_url":"https://api.github.com/users/mstimberg/events{/privacy}","received_events_url":"https://api.github.com/users/mstimberg/received_events","type":"User","site_admin":false},"created_at":"2015-03-04T17:03:06Z","updated_at":"2015-03-04T17:03:06Z","body":"The test looks fine, and I think it is ok to not document `start_scope` for now. Also the structure of the user documentation should change a bit, the \"Getting started\" section is mostly redundant now.\r\n\r\nI started some work to integrate the tutorials into the documentation. If you run `dev/tools/doc/build_tutorials.py` then they will be run and converted to rst (no need for the `runipy` package I mentioned before, ipython can do it itself in version 3.0). They way it is included in the HTML output is very ugly, though, there's no difference between code cells in the output :-/ Maybe readthedocs renders it better? Anyway, we have some time to figure it out, for now it will not appear in the online documentation.\r\n\r\nIf you are ok with my changes, feel free to merge.\r\n\r\nThe new synapses tutorial looks great as well, by the way. I wonder whether it makes sense to introduce `PoissonGroup` and `SpikeGeneratorGroup` at the end of the neuron tutorial, it would make the input to the synapses a bit easier instead of using the \"threshold hack\" with a long refractory period. "}}