Skip to content

Commit

Permalink
update notebook with znjson.config.ACTIVE_CONVERTER
Browse files Browse the repository at this point in the history
  • Loading branch information
PythonFZ committed Mar 8, 2022
1 parent 66204ff commit 620b20d
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions example/example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,25 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"1. Register the required converter"
"1. You can register / deregister `znjson.converter`. By default all available converters will be registered."
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [],
"outputs": [
{
"data": {
"text/plain": "[znjson.converter.small_numpy_converter.SmallNumpyConverter,\n znjson.converter.numpy_converter_base64.NumpyConverter,\n znjson.converter.pathlib_converter.PathlibConverter,\n znjson.converter.pandas_converter.PandasConverter,\n znjson.converter.numpy_converter_latin1.NumpyConverterLatin1,\n znjson.converter.class_converter.ClassConverter]"
},
"execution_count": 2,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"znjson.register(\n",
" znjson.converter.SmallNumpyConverter\n",
")"
"znjson.config.ACTIVE_CONVERTER"
]
},
{
Expand Down

0 comments on commit 620b20d

Please sign in to comment.