On my work computer I set Jupyter Lab to auto-convert notebooks to python .py, so both the notebook and .py script are autosaved.
But having installed Jupyter Lab on my home computer, strangely I don't see that setting or option.
I also conda installed nbconvert in case it's a required package but that didn't help.
Related
Python is installed in Linux, as shown in terminal, but why does jupyter notebook on vscode always say not Python is installed?
Thanks a lot.
Have you selected a python environment which has jupyter notebook installed.
Install jupyter notebook in environment:
pip install jupyter notebook
Select environment in VSCode:
https://code.visualstudio.com/docs/python/environments#_select-and-activate-an-environment
on vs code (last version) I can create a new jupyter notebook typing:
'Jupyter: Create New Jupyter Notebook'
but then I can't save it as I don't have the extension ipynb on the saving window.
If I try with python or json extension it doesn't work
I have python and jupyter modules installed
I have on an other computer vs code (an other and I don't have this problem
I have uninstall module jupyter and reinstall it (version v2022.2.1030672458) with no sucess
do you know what it could be?
I use Windows 10. Jupiter Lab is installed from Anaconda.
I want to associate ipynb files with Jupyter Lab so that, when I double click on ipynb file it should be opened using Jupyter Lab. How can I do it?
Install nbopen
this is the documentation https://github.com/takluyver/nbopen
pip install nbopen
python -m nbopen.install_win
if it does not work change
python -m nbopen.install_win
for
ipython -m nbopen.install_win
after that would you can to open your *.ipynb files with double click:
*Mark as answer if it solve your problem
I am trying to follow the TensorFlow API documentation. I have done all the steps and activated my tensorflow_gpu environment. In the C:\TensorFlow\models\research\object_detection I typed "jupyter notebook" and it opens me a blank page http://localhost:8889/tree.
I tried to open the Jupyter Notebook in my base(root) and it opens the dashboard but for the other environments it only gives me a blank page.
How can I avoid that? Thank you.
I tried to delete and re-install jupyter notebook for that specific environments. I tried to upgrade and downgrade the version of it. Nothing worked yet.
You can still run the Jupyter Notebook in your base environment and make the notebook run with a different kernel (like if you are running the notebook in a different environment). In order to do so you need to install these packages in all of your environment:
conda install nb_conda nb_conda_kernels ipykernel
By doing so you will be able to see the kernels of all of your environments directly in base.
You will be able to start jupyter notebook in base, and once the notebook is running in your browser you can decide which kernel to use.
In the above picture I started Jupyter Notebook in my base environment, and having installed those packages in all the environments let me run any notebook with any kernel.
NB: My other environments are tf_lite1.13, tf_lite2, tf_night. Root will run the base kernel.
I ran some jupyter notebook using VSCode. However, VSCode created some 'Python Interactive' environment which appears in my Jupyter Notebook. How do I remove them?
Sorry that's a bug in the python extension.
To delete them you can follow the directions here:
remove kernel on jupyter notebook
They're just json files in a directory that Jupyter maintains. The VS Code python extension created them to get our kernel to work.
If you still see these after deleting using jupyter kernelspec uninstall unwanted-kernal, you can clear these by uninstalling and then reinstalling your Jupyter extension in VSCode.
In VSCode, click the 'extensions' icon, then search 'Jupyter'. Uninstall it. Then install it.