jupyter-notebook

How to change python version in Anaconda?

旧街凉风 提交于 2020-12-24 23:57:12
问题 I am trying to get into deep learning. I installed Anaconda to use jupyter and generally not to care about installing all of those packages like matplotlib etc myself. But I cannot install tensorflow as it works only with Python 3.4, 3.5, or 3.6 but I have 3.7. After I read about it I installed python 3.6.8. I uninstalled Anaconda and installed it again, nothing changed. After that, I used this command conda install python=3.6.8 to presumably install python 3.6.8 for it (I found this solution

How can I get the option 'Export Notebook to Html_toc' on the 'Export Notebook as…' menu in Jupyter Lab?

无人久伴 提交于 2020-12-23 12:19:12
问题 How can all of the jupyter nbconvert export options be enabled from the Export Notebook As... menu in Jupyter lab? Specifically, how can I get the option to Export Notebook to Html_toc on the menu? Following a clean installation of Anaconda, the default export menu is: However, as shown in this issue Add nbconvert export options to File --> Export notebook as #7612, there are additional options, which can be run from the console, but do not display in the menu. The full menu would look like:

Error installing jupyterlab/jupyter notebook on MacOS big sur

生来就可爱ヽ(ⅴ<●) 提交于 2020-12-13 09:28:09
问题 I'm trying to install jupyter on my mac, but I'm facing errors while installing. The commands used to install: pip install jupyterlab pip install notebook Both give similar errors. I acknowledge I'm on a beta OS thus I wouldn't complain if it's not supported, just asking to make sure that it's not some stupid user-errors. Errors shown: Defaulting to user installation because normal site-packages is not writeable Collecting notebook Using cached notebook-6.1.4-py3-none-any.whl (9.5 MB)

converting from .py to .ipynb

对着背影说爱祢 提交于 2020-12-13 03:12:32
问题 I wrote a juypter notebook that has been converted to .py somehow. I would like it back in the original format. Does anyone know how to do that? There is a previous stack overflow question about this, but the solution doesn't work for me. Converting to (not from) ipython Notebook format The below is an example of what the code looks like now. It is a lot of code so would take hours to copy and paste it manually. Thanks for the help. { "cell_type": "code", "execution_count": 581, "metadata": {

Jupyter Notebook ModuleError after Homebrew Upgrade

感情迁移 提交于 2020-12-12 10:25:12
问题 I have been using Jupyter for some time now and it has worked just fine. I have Jupyter and Python installed via Homebrew. I am running on MacOS. Yesterday, I ran the command brew upgrade and now my Jupyter notebook is unable to find any of the installed python packages. I will use Numpy as the example. When inside of a Jupyter notebook, I try to do import numpy I get the message: ModuleNotFoundError: No module named 'numpy' If, however, I launch python in a terminal window, then I can import

Pyspark / pyspark kernels not working in jupyter notebook

送分小仙女□ 提交于 2020-12-11 02:52:47
问题 Here are installed kernels: $jupyter-kernelspec list Available kernels: apache_toree_scala /usr/local/share/jupyter/kernels/apache_toree_scala apache_toree_sql /usr/local/share/jupyter/kernels/apache_toree_sql pyspark3kernel /usr/local/share/jupyter/kernels/pyspark3kernel pysparkkernel /usr/local/share/jupyter/kernels/pysparkkernel python3 /usr/local/share/jupyter/kernels/python3 sparkkernel /usr/local/share/jupyter/kernels/sparkkernel sparkrkernel /usr/local/share/jupyter/kernels

Can't create a Python 3 notebook in jupyter notebook

亡梦爱人 提交于 2020-12-10 07:01:45
问题 I'm following this tutorial and I'm stuck when I want to create a new Jupyter Notebook (Python 3). The cluster is created using this command: gcloud beta dataproc clusters create ${CLUSTER_NAME} \ --region=${REGION} \ --image-version=1.4 \ --master-machine-type=n1-standard-4 \ --worker-machine-type=n1-standard-4 \ --bucket=${BUCKET_NAME} \ --optional-components=ANACONDA,JUPYTER \ --enable-component-gateway When I accessing the JupyterLab and try to create a new notebook I can see: and then

Can't create a Python 3 notebook in jupyter notebook

六眼飞鱼酱① 提交于 2020-12-10 06:59:40
问题 I'm following this tutorial and I'm stuck when I want to create a new Jupyter Notebook (Python 3). The cluster is created using this command: gcloud beta dataproc clusters create ${CLUSTER_NAME} \ --region=${REGION} \ --image-version=1.4 \ --master-machine-type=n1-standard-4 \ --worker-machine-type=n1-standard-4 \ --bucket=${BUCKET_NAME} \ --optional-components=ANACONDA,JUPYTER \ --enable-component-gateway When I accessing the JupyterLab and try to create a new notebook I can see: and then

How to run pyramid auto arima on Anaconda Jupyter notebook?

穿精又带淫゛_ 提交于 2020-12-09 11:18:17
问题 Apparently, Anaconda has a different pyramid package and it is for web framework. https://anaconda.org/anaconda/pyramid The user guide for arima pyramid suggests that one uses pip to install pyramid-arima. https://www.alkaline-ml.com/pyramid/setup.html#setup But since Anaconda uses conda to configure packages, how do I add pyramid-arima to the Anaconda environment for Jupyter notebook? 回答1: pyramid-arima was recently renamed to pmdarima to avoid collisions with the Pyramid web framework. Try

Is there a shortcut for deleting a line in Jupyter's edit mode?

旧街凉风 提交于 2020-12-09 08:27:34
问题 In Jupyter's edit mode, is there a shortcut for deleting a line of text? Something like Ctrl + L in Visual Studio? 回答1: Shift + Delete or Ctrl + D or both, depending on version. Ctrl + D is listed under Help → Keyboard Shortcuts in the notebook menu, but Shift + Delete seems to work despite being undocumented. 回答2: As for Jupyter notebook servion version 6.0.2 the command Ctrl + D works for me. This shortcut is listed in the shortcut documentation, that can be found under Help → Keyboard