I'm looking to report a potential bug I encountered when using a custom ipython kernel that uses a venv python3.10.8 installation.
Problem
A month ago I installed nbproject to use header() in a notebook (https://github.com/laminlabs/lndb-benchmarks/pull/16). Within the Jupyter NotebookApp, I was unable to get header to print, instead receiving the following error:
🔶 It looks like you are running jupyter lab but don't have jupyter-server module installed.Please install it via pip install jupyter-server
🔶 Can not find any servers running.
ℹ️ Can't infer the name of the current notebook, you are probably not inside a Jupyter notebook. Please call `header(filepath='your-file.ipynb')`.
The kernel I was using was a custom one I installed that sources from my venv Python installation, not a conda env. I have reproduced the error on both macOS and Fedora.
Now a month later, I have reproduced it in VSCode on Fedora:
Note the error message here (and now when rerunning in the original notebook) is a bit different:
🔶 Can not find the notebook in any server session.
ℹ️ Can't infer the name of the current notebook, you are probably not inside a Jupyter notebook. Please call `header(filepath='your-file.ipynb')`.
I am not sure if the problem is due to me using a custom kernel or venv.
Confirm python is sourced from venv: !which python
from nbproject import header; header()
Uninstall kernel using jupyter kernelspec uninstall lamindb
A solution is not priority for me as there is of course the workaround of using the filepath kwarg. Of course for easy reproducibility on other machines, a solution without filepath would be greatly appreciated. Please let me know if I can provide any further information!
Hi,
I'm looking to report a potential bug I encountered when using a custom ipython kernel that uses a venv python3.10.8 installation.
Problem
A month ago I installed nbproject to use
header()
in a notebook (https://github.com/laminlabs/lndb-benchmarks/pull/16). Within the Jupyter NotebookApp, I was unable to get header to print, instead receiving the following error:The kernel I was using was a custom one I installed that sources from my venv Python installation, not a conda env. I have reproduced the error on both macOS and Fedora.
Now a month later, I have reproduced it in VSCode on Fedora: Note the error message here (and now when rerunning in the original notebook) is a bit different:
I am not sure if the problem is due to me using a custom kernel or venv.
Steps to reproduce
Then:
!which python
from nbproject import header; header()
Uninstall kernel usingjupyter kernelspec uninstall lamindb
A solution is not priority for me as there is of course the workaround of using the
filepath
kwarg. Of course for easy reproducibility on other machines, a solution withoutfilepath
would be greatly appreciated. Please let me know if I can provide any further information!Thank you, James