Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions nbs/09_magics.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@
"from nbstata.stata_session import warn_re_unclosed_comment_block_if_needed\n",
"import nbstata.browse as browse\n",
"from fastcore.basics import patch_to\n",
"import os\n",
"import re\n",
"import urllib\n",
"from pkg_resources import resource_filename\n",
"from bs4 import BeautifulSoup as bs\n",
"import configparser"
]
Expand Down Expand Up @@ -161,9 +161,7 @@
" \n",
" abbrev_dict = _construct_abbrev_dict()\n",
" \n",
" csshelp_default = resource_filename(\n",
" 'nbstata', 'css/_StataKernelHelpDefault.css'\n",
" )\n",
" csshelp_default = os.path.join(os.path.dirname(__file__), 'css', '_StataKernelHelpDefault.css')\n",
"\n",
" def magic_quietly(self, code, kernel, cell):\n",
" \"\"\"Suppress all display for the current cell.\"\"\"\n",
Expand Down