jupyter-notebook

ImportError: cannot import name 'STL' from 'statsmodels.tsa.seasonal'

梦想与她 提交于 2020-01-02 10:19:55
问题 I have this issue now, I cannot import STL from statsmodels. I've tried to uninstall statsmodels as it was recommended somewhere with a similar issue but it is not possible, at least the way I do it: !pip uninstall statsmodels - NOT working. 回答1: It seems that the STL function from statsmodels is not included in the latest stable version of the library (0.10.2) but is in the dev version (0.11.0dev0). You can build and install this specific version with this command: pip install git+https:/

How can i run Jupyter notebook in admin privilege?

白昼怎懂夜的黑 提交于 2020-01-02 08:22:24
问题 Because of API I need to run Python with admin privileges. I can run Anaconda or PyCharm with admin privileges by click running by admin privilege. But how can I run Python on Jupyter notebook with admin privileges? 回答1: I assume you are in a Windows environment. You can run cmd with admin privilege then run jupyter notebook . Type cmd in the start menu Right click on Command Prompt and click Run as administrator Type jupyter notebook in cmd and press enter Please use this with caution as

ipython notebook background colour of a cell

元气小坏坏 提交于 2020-01-02 04:47:28
问题 How may I change the background colour of a particular cell in iPython Notebook? For example, I'm writing a manual and I'd like to add some Terminal commands in a grey text box as in http://ipython.org/ipython-doc/1/interactive/nbconvert.html. 回答1: Basically, you could write the terminal commands in preformatted code blocks within markdown cells. For single line (inline) code you can use double graves (``) like echo 1 (``echo 1``). This works exactly like here on Stackoverflow. Longer code

Folium maps not showing up on jupyter notebook uploaded on github

▼魔方 西西 提交于 2020-01-02 03:40:07
问题 I have successfully rendered folium maps on my jupyter notebook by increasing the data limit when launching jupyter from anaconda prompt like this: "jupyter notebook --NotebookApp.iopub_data_rate_limit=1.0e10" However, when I have uploaded the notebook to Github, rather than the map I had processed, I got a blank window. How can I render these maps? Is it possible to increase the data_rate_limit on the notebook when it is being launched through github? 来源: https://stackoverflow.com/questions

Jupyter “500: Internal Server Error”; “ImportError: cannot import name ConverterMapping”

三世轮回 提交于 2020-01-02 02:56:06
问题 I'm trying to use Jupyter notebook on a fresh install of Ubuntu 19.04. I've run through the usual installation steps, but Jupyter does not work. When I try to open a notebook, I get 500 : Internal Server Error When I look in the terminal, I see that Jupyter has encountered the error ImportError: cannot import name ConverterMapping I've searched, and found questions/answers for other causes of the internal server error in Jupyter, but I cannot find a way to fix the ConverterMapping issue. I

Save a pivottablejs figure to file

此生再无相见时 提交于 2020-01-02 02:20:33
问题 I have started using the package pivottablejs to manipulate and visualize pivot tables in python. from pivottablejs import pivot_ui pivot_ui(df) # where df is a pandas dataframe will produce an interactive pivot table/plot in a jupyter notebook. Is there any pythonic way to save the figures produced by this package to (say) png from within the jupyter notebook? I am looking for something similar to the classic plt.savefig('file.png') . The front-end is essentially javascript , and I do not

Basemap won't import because 'epsg' file or directory can't be found (MacOS, Anaconda, Jupyter Notebook)

可紊 提交于 2020-01-01 22:29:11
问题 I am trying to use the Matplotlib Basemap toolkit but am running into a FileNotFoundError related to epsg when I try importing it. I installed it using the following command: conda install -c conda-forge basemap Here's my import command: from mpl_toolkits.basemap import Basemap Here's the error: --------------------------------------------------------------------------- FileNotFoundError Traceback (most recent call last) <ipython-input-1-d9467465a3b6> in <module> ----> 1 from mpl_toolkits

Toree on Jupyter for Spark 2.2.0

元气小坏坏 提交于 2020-01-01 19:40:30
问题 OS X El Capitan 10.11.6 Spark 2.2.0 (local) Scala 2.11.8 I'm using Jupyter via my install of anaconda3 . My understanding is that the latest production release of Toree does not support either Spark 2.0+ or Scala 11. However I have found several references (1, 2) where you can clone incubator-toree from github and manually set the version of Spark . In my mac terminal, this is the code I've used: git clone https://github.com/apache/incubator-toree cd incubator-toree Then, the line make clean

Toree on Jupyter for Spark 2.2.0

◇◆丶佛笑我妖孽 提交于 2020-01-01 19:40:10
问题 OS X El Capitan 10.11.6 Spark 2.2.0 (local) Scala 2.11.8 I'm using Jupyter via my install of anaconda3 . My understanding is that the latest production release of Toree does not support either Spark 2.0+ or Scala 11. However I have found several references (1, 2) where you can clone incubator-toree from github and manually set the version of Spark . In my mac terminal, this is the code I've used: git clone https://github.com/apache/incubator-toree cd incubator-toree Then, the line make clean

Plotly in Jupyter issue

烈酒焚心 提交于 2020-01-01 08:45:48
问题 I installed plotly.py to work some plots using Jupyter but I cannot import it. ! pip install plotly --upgrade Requirement already up-to-date: plotly in c:\python34\lib\site-packages Requirement already up-to-date: requests in c:\python34\lib\site-packages (from plotly) Requirement already up-to-date: six in c:\python34\lib\site-packages (from plotly) Requirement already up-to-date: pytz in c:\python34\lib\site-packages (from plotly) Cleaning up... and then import plotly ----------------------