C2DH / jdh-notebook

A collection of Jupyter notebooks for the Journal of Digital History
https://journalofdigitalhistory.org
GNU Affero General Public License v3.0
4 stars 1 forks source link

Merge notebook jdh001-WBqfZzfi7nHK - Update anchor - Prepare publication #58

Closed eliselavy closed 2 years ago

eliselavy commented 2 years ago

I have created a new pull request https://github.com/jdh-observer/jdh001-WBqfZzfi7nHK/pulls with the anonymised version of the notebook. The latest version of the notebook is called digital-epigraphy-anon.ipynb​

eliselavy commented 2 years ago

@inactinique article merge - problem citation fixed by the author - i need to reply to Petra tomorrow morning for also the adaption of the sdkk.readfile not working and need to add possiblity to define anchor to hermeneutics paragraph https://journalofdigitalhistory.org/en/notebook-viewer/JTJGcHJveHktZ2l0aHVidXNlcmNvbnRlbnQlMkZqZGgtb2JzZXJ2ZXIlMkZqZGgwMDEtV0JxZlp6Zmk3bkhLJTJGbWFpbiUyRnNjcmlwdHMlMkZkaWdpdGFsLWVwaWdyYXBoeS1hbm9uLmlweW5i

eliselavy commented 2 years ago

About the

publicfolder = "b6b6afdb969d378b70929e86e58ad975"
EDH = sddk.read_file("EDH_text_cleaned_2021-01-21.json", "df", publicfolder)
reading file located in a public folder
file import failed

Since version 3.0, the package supports two different types of authentification, implying two different ways of using the package.

using cloudSession() class object and the s class session object using configure() function and the conf variable

eliselavy commented 2 years ago
raise CellExecutionError.from_cell_and_msg(cell, exec_reply_content)

nbclient.exceptions.CellExecutionError: An error occurred while executing the following cell:

saving locally for future use

for gdf, n in zip(EDH_dated_df_by_periods, range(len(EDH_dated_df_by_periods))): with open("../output/EDH_dated_periodRE{0}.geojson".format(str(n)), "w") as file: json.dump(sddk.gdf_to_geojson(gdf), file)


AttributeError Traceback (most recent call last)

in 2 for gdf, n in zip(EDH_dated_df_by_periods, range(len(EDH_dated_df_by_periods))): 3 with open("../output/EDH_dated_period_RE_{0}.geojson".format(str(n)), "w") as file: ----> 4 json.dump(sddk.gdf_to_geojson(gdf), file) AttributeError: 'list' object has no attribute 'dump' AttributeError: 'list' object has no attribute 'dump' linked to https://github.com/C2DH/jdh-notebook/issues/19