diff --git a/pybis/src/python/notebooks/pybis demo.ipynb b/pybis/src/python/notebooks/pybis demo.ipynb index ad680e7515283051de8122b854d181dd15d57d4b..5a5c9e101842ed3fc90b77c43b8817bca618e6e9 100644 --- a/pybis/src/python/notebooks/pybis demo.ipynb +++ b/pybis/src/python/notebooks/pybis demo.ipynb @@ -17,15 +17,115 @@ }, { "cell_type": "code", - "execution_count": 3, + "execution_count": 1, "metadata": {}, - "outputs": [], + "outputs": [ + { + "data": { + "text/plain": [ + "'admin-190322224519031x6CD252246FDAD84555B20A030E8F60F8'" + ] + }, + "execution_count": 1, + "metadata": {}, + "output_type": "execute_result" + } + ], "source": [ "from pybis import Openbis\n", "o = Openbis(url='https://localhost:8443', verify_certificates=False)\n", "o.token" ] }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "'admin-190322225222678x9B6C922E404DB51F1C50A1B9DDFF371B'" + ] + }, + "execution_count": 2, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "o.login('admin', 'changeit', save_token=True)" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "{\"@type\": \"as.dto.common.search.SearchResult\", \"@id\": 1, \"objects\": [], \"totalCount\": 4}\n" + ] + }, + { + "data": { + "text/html": [ + "<div>\n", + "<style scoped>\n", + " .dataframe tbody tr th:only-of-type {\n", + " vertical-align: middle;\n", + " }\n", + "\n", + " .dataframe tbody tr th {\n", + " vertical-align: top;\n", + " }\n", + "\n", + " .dataframe thead th {\n", + " text-align: right;\n", + " }\n", + "</style>\n", + "<table border=\"1\" class=\"dataframe\">\n", + " <thead>\n", + " <tr style=\"text-align: right;\">\n", + " <th></th>\n", + " <th>identifier</th>\n", + " <th>permId</th>\n", + " <th>experiment</th>\n", + " <th>sample_type</th>\n", + " <th>registrator</th>\n", + " <th>registrationDate</th>\n", + " <th>modifier</th>\n", + " <th>modificationDate</th>\n", + " </tr>\n", + " </thead>\n", + " <tbody>\n", + " </tbody>\n", + "</table>\n", + "</div>" + ], + "text/plain": [ + "identifier permId experiment sample_type registrator registrationDate modifier modificationDate\n", + "------------ -------- ------------ ------------- ------------- ------------------ ---------- ------------------" + ] + }, + "execution_count": 6, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "o.get_samples(start_with=1, count=0)" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [] + }, { "cell_type": "markdown", "metadata": {}, @@ -35,16 +135,16 @@ }, { "cell_type": "code", - "execution_count": 7, + "execution_count": 2, "metadata": {}, "outputs": [ { "data": { "text/plain": [ - "True" + "False" ] }, - "execution_count": 7, + "execution_count": 2, "metadata": {}, "output_type": "execute_result" }