{"action":"opened","issue":{"url":"https://api.github.com/repos/jupyter/nbconvert/issues/671","repository_url":"https://api.github.com/repos/jupyter/nbconvert","labels_url":"https://api.github.com/repos/jupyter/nbconvert/issues/671/labels{/name}","comments_url":"https://api.github.com/repos/jupyter/nbconvert/issues/671/comments","events_url":"https://api.github.com/repos/jupyter/nbconvert/issues/671/events","html_url":"https://github.com/jupyter/nbconvert/issues/671","id":255945250,"number":671,"title":"Feature request: custom image file names","user":{"login":"mhinsch","id":7723682,"avatar_url":"https://avatars3.githubusercontent.com/u/7723682?v=4","gravatar_id":"","url":"https://api.github.com/users/mhinsch","html_url":"https://github.com/mhinsch","followers_url":"https://api.github.com/users/mhinsch/followers","following_url":"https://api.github.com/users/mhinsch/following{/other_user}","gists_url":"https://api.github.com/users/mhinsch/gists{/gist_id}","starred_url":"https://api.github.com/users/mhinsch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhinsch/subscriptions","organizations_url":"https://api.github.com/users/mhinsch/orgs","repos_url":"https://api.github.com/users/mhinsch/repos","events_url":"https://api.github.com/users/mhinsch/events{/privacy}","received_events_url":"https://api.github.com/users/mhinsch/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-09-07T13:54:36Z","updated_at":"2017-09-07T13:54:36Z","closed_at":null,"author_association":"NONE","body":"By default nbconvert names generated image files using a fixed prefix and the cell number. While this is simple and nicely general it doesn't work well in scenarios where you want to re-use the generated images as part of a different workflow. As an example: I am working on a LaTeX document that includes figures generated from a jupyter notebook. No problem as long as the notebook doesn't change, but as soon as I insert cells at the beginning of the notebook all image file names change and have to be adapted manually in the LaTeX file.\r\n\r\nI've had a long look through the documentation but I haven't been able to find a way to change that behaviour.\r\n\r\nMy suggestion: optionally let image file names be generated either from a heading preceding the cell containing the image or from a meta tag in the image cell itself. I've changed my local copy of nbconvert to use a tag \"name\" in place of the cell number if present (2 lines of code), but a proper implementation should probably make that optional and easily configurable."}}
{"actor":{"display_login":"mhinsch"}}