jupyter-lab

How to update jupyterlab using conda or pip?

谁说我不能喝 提交于 2020-08-02 06:07:21
问题 How do you update jupyterlab using conda or pip? I understand that conda update jupyter updates jupyter notebook (I have Anaconda), but I'm not sure this takes care of jupyterlab as well. 回答1: conda update jupyter will not automatically update jupyterlab. You have to explicitly request an update of jupyterlab: conda update jupyterlab 回答2: You may need to specify conda-forge: conda update -c conda-forge jupyterlab 回答3: If you prefer using pip: pip install --upgrade jupyterlab Or if you'd like

Jupyter Lab and Notebook Problem: Kernel Error

我只是一个虾纸丫 提交于 2020-07-30 18:51:18
问题 It appears that somehow one of my kernels is deleted. And perhaps that's why I am getting this error. How could I possibly fix it? Can I reinstall something (the kernel in the base environment perhaps)? If no better option is available, I would try reinstalling anaconda altogether as a last resort according to: Default kernel in jupyter notebook (Python3) not working. I have tried using the following: Installation of Jupyter Lab: requirements already satisfied Kernels don't show up when

Jupyter Lab and Notebook Problem: Kernel Error

孤街浪徒 提交于 2020-07-30 18:48:14
问题 It appears that somehow one of my kernels is deleted. And perhaps that's why I am getting this error. How could I possibly fix it? Can I reinstall something (the kernel in the base environment perhaps)? If no better option is available, I would try reinstalling anaconda altogether as a last resort according to: Default kernel in jupyter notebook (Python3) not working. I have tried using the following: Installation of Jupyter Lab: requirements already satisfied Kernels don't show up when

Can a jupyter notebook find its own filename?

▼魔方 西西 提交于 2020-07-20 07:33:29
问题 Is it possible for a jupyter notebook to get the name of its own file, similarly to what we would do from a python script? os.path.basename(__file__) doesn't seem to work, at least for me on jupyterlab sys.argv[0] returns my_home/anaconda3/lib/python3.6/site-packages/ipykernel_launcher.py 回答1: The only way I've found is through JavaScritp as in this answer. The compact form is a cell like this: %%javascript IPython.notebook.kernel.execute(`notebookName = '${window.document.getElementById(

Can a jupyter notebook find its own filename?

断了今生、忘了曾经 提交于 2020-07-20 07:33:07
问题 Is it possible for a jupyter notebook to get the name of its own file, similarly to what we would do from a python script? os.path.basename(__file__) doesn't seem to work, at least for me on jupyterlab sys.argv[0] returns my_home/anaconda3/lib/python3.6/site-packages/ipykernel_launcher.py 回答1: The only way I've found is through JavaScritp as in this answer. The compact form is a cell like this: %%javascript IPython.notebook.kernel.execute(`notebookName = '${window.document.getElementById(

Problem displaying widgets / ipywidgets install unsuccessful

落爺英雄遲暮 提交于 2020-07-20 03:48:24
问题 I'm implementing widgets in my jupyter notebook (via anaconda). I tried first by using an old code from a professor of mine, but it's not displaying widgets. I tried installing: jupyter labextension install @jupyter-widgets/jupyterlab-manager But it was unsuccessful This was presented when I attempted installation of the package via windows command prompt: C:\Users\davio>jupyter labextension install @jupyter-widgets/jupyterlab-manager Traceback (most recent call last): File "C:\Users\davio

Problem displaying widgets / ipywidgets install unsuccessful

安稳与你 提交于 2020-07-20 03:48:04
问题 I'm implementing widgets in my jupyter notebook (via anaconda). I tried first by using an old code from a professor of mine, but it's not displaying widgets. I tried installing: jupyter labextension install @jupyter-widgets/jupyterlab-manager But it was unsuccessful This was presented when I attempted installation of the package via windows command prompt: C:\Users\davio>jupyter labextension install @jupyter-widgets/jupyterlab-manager Traceback (most recent call last): File "C:\Users\davio

MathJax auto equation numbering does not work in Jupyter properly

孤街浪徒 提交于 2020-07-09 12:57:25
问题 I want to number the LaTeX equation, I searched internet that I shall use %%javascript MathJax.Hub.Config({ TeX:{equationNumbers:{autoNumber:'all'}} }); I tested with an equation also with \eqref{} : In equation $\eqref{eq:sample}$, we find the value of an interesting integral: \begin{equation} \int_0^\infty \frac{x^3}{e^x-1}\,dx = \frac{\pi^4}{15} \label{eq:sample}{\tag{99}} \end{equation} The output in JupyterLab is So far everything looks alright, however I start any another cell, use

Error when opening .ipynb in JupyterLab - “Close without saving?”

和自甴很熟 提交于 2020-07-09 11:59:48
问题 When I try to open my .ipynb , I get the following error. Other notebooks in the same directory work just fine. UI Error: Close without saving? File "cloner.ipynb" has unsaved changes, close without saving?Close without saving? File "cloner.ipynb" has unsaved changes, close without saving? Browser console errors: serverconnection.js:192 GET http://localhost:8890/api/contents/cloner.ipynb?type=notebook&content=1&1586015957921 400 (Bad Request) handleRequest @ serverconnection.js:192

Error when opening .ipynb in JupyterLab - “Close without saving?”

China☆狼群 提交于 2020-07-09 11:59:26
问题 When I try to open my .ipynb , I get the following error. Other notebooks in the same directory work just fine. UI Error: Close without saving? File "cloner.ipynb" has unsaved changes, close without saving?Close without saving? File "cloner.ipynb" has unsaved changes, close without saving? Browser console errors: serverconnection.js:192 GET http://localhost:8890/api/contents/cloner.ipynb?type=notebook&content=1&1586015957921 400 (Bad Request) handleRequest @ serverconnection.js:192