dacon ipynb 파일 upload 할때 cell 안보이게 하는 방법 아시나요?

2020.12.27 23:38 1,300 조회

업로드할때 셀 input 을 안보이게 하고 싶은데


구글링 해도 방법을 못찾겠습니다.


metadata 안에


{
	'tags':['remove_input']

해도 안되고,


def perform_post_exec_cleanup(output_nb_name, tag_to_del='injected-parameters'):

    import json
    from traitlets.config import Config
    from nbconvert import NotebookExporter
    import nbformat

    c = Config()
    c.TagRemovePreprocessor.enabled=True # to enable the preprocessor
    c.TagRemovePreprocessor.remove_cell_tags = [tag_to_del]
    c.preprocessors = ['TagRemovePreprocessor'] # previously: c.NotebookExporter.preprocessors

    nb_body, resources = NotebookExporter(config=c).from_filename(output_nb_name)
    nbformat.write(nbformat.from_dict(json.loads(nb_body)), output_nb_name, 


이렇게 해도 안됩니다.



방법 알려주시면 감사하겠습니다.


로그인이 필요합니다
0 / 1000
도비콘
2020.12.27 23:50

안녕하세요  98hyun님

내일 개발팀과 확인하고 알려드릴께요.

감사합니다.

데이콘팀 드림.

98hyun
2020.12.27 23:57

예 감사합니다. 

98hyun
2020.12.29 22:44

어떻게 됐나요? 방법 알려주시면 감사하겠습니다.