jupyter-notebook

Adding C++ kernels to Jupyter notebook

本小妞迷上赌 提交于 2019-12-11 06:18:09
问题 After successful installation of cling, I tried to add c++ kernels to jupyter notebook but it says my kernel appears to have died and it keeps restarting with the following error message: The 'stdin_port' trait of an IPKernelApp instance must be an integer, but a value of u'c++11' was specified. I am using Python2.7 and macOS Regards, 来源: https://stackoverflow.com/questions/43459809/adding-c-kernels-to-jupyter-notebook

Python input() box position in Jupyter notebook is out of sequence

浪子不回头ぞ 提交于 2019-12-11 06:14:37
问题 I have a simple function that I use to read the contents of a text file into a Python variable. I use it to import SQL queries. The function takes a parameter that is the path and name of the text file and allows several attempts to get the name right, allowing for typos or mis-spellings. By default, this parameter is set to None. If the file can't be found, the function prints an error message and presents an input() box to allow a new path and filename to be entered. The function then

How can jupyter access a new tensorflow module installed in the right path?

偶尔善良 提交于 2019-12-11 06:05:15
问题 Where should I stick the model folder? I'm confused because python imports modules from somewhere in anaconda (e.g. import numpy), but I can also import data (e.g. file.csv) from the folder in which my jupyter notebook is saved in. The TF-Slim image models library is not part of the core TF library. So I checked out the tensorflow/models repository as: cd $HOME/workspace git clone https://github.com/tensorflow/models/ I'm not sure what $HOME/workspace is. I'm running a ipython/jupyter

comparing string in a column and creating respective a new column in python

泄露秘密 提交于 2019-12-11 05:24:20
问题 I have data frame as shown below. I need to compare column in a data frame with the string and creating a new column. DataFrame: col_1 AB_SUMI AK_SUMI SB_LIMA SB_SUMI XY_SUMI If 'AB','AK','SB' are present in col_1 it should create a new column with their respective values otherwise '*' should come in the column value. expected output: col_1 new_col AB_SUMI AB AK_SUMI AK SB_LIMA SB SB_SUMI SB XY_SUMI * I have tried with below code but not worked out. list=['AB','AK','AB'] for item in list: if

Always have Jupyter notebook load with certain options / packages

亡梦爱人 提交于 2019-12-11 04:51:35
问题 Is there a way to ensure that jupyter notebook always starts with either: 1) Certain packages imported and/or 2 Certain options set I don't want to have to type the same things everytime at the the top of each notebook I run - e.g. always using numpy or pandas. Additionally, I always want to be able to see multiple output per cell. I use the following code to let this work just fine, but I want this saved as some sort of template, that doesn't require manual effort from me to type each time.

Is it possible to grant multiple users to Jupyter notebook?

China☆狼群 提交于 2019-12-11 04:27:03
问题 I am working on a project in an EC2 isntance using jupyter notebook. It seems like jupyter notebook does not allow multiple ssh to its server at the same time, I have to log out if other people want to connect to jupyter notebook through the instance. Is it possible to make multiple access to jupyter notebook from the same instance? 回答1: The juypter notebook is installed on a server in this case an EC2 machine. Any number of people can SSH into this machine if they have the credentials using

How do I make jupyter-hub access my private docker image repository?

南楼画角 提交于 2019-12-11 04:25:16
问题 I want to deploy my own image on JuPyter-hub. However, I need to deploy it to some registry so that the image puller of JHub can pull it from there. In my case, the registry is private. Although I am able to push the image to my registry, I don't know how will I make the jupyterhub release and deployment be able to pull the image. I tried reading this doc (https://github.com/jupyterhub/jupyterhub-deploy-docker) but it could not help me understand how am I to add authentication in the jupyter

where can I find the detailed definition about this parameter 'joint_kws' in jointplot function in seaborn or matplotlib in Python?

不羁岁月 提交于 2019-12-11 04:14:21
问题 The following is a description of this function: def jointplot(x, y, data=None, kind="scatter", stat_func=stats.pearsonr, color=None, size=6, ratio=5, space=.2, dropna=True, xlim=None, ylim=None, joint_kws=None, marginal_kws=None, annot_kws=None, **kwargs) and the following is the description of the last few oprional parameters: {joint, marginal, annot}_kws : dicts, optional Additional keyword arguments for the plot components. kwargs : key, value pairings Additional keyword arguments are

“Unable to open libLLVM!” on macOS Mojave

若如初见. 提交于 2019-12-11 04:11:19
问题 I'm trying to set up Julia (v1.0.1) with Jupyter Notebooks using Anaconda on macOS (Mojave, 10.14). I create a new conda environment, install julia via conda install -c conda-forge julia In order to access Julia via jupyter notebooks I do the following: using Pkg Pkg.add("IJulia") The above goes well but opening Jupyter notebook and selecting Julia yields the following: Blosc not installed properly, run Pkg.build("ZMQ"), restart Julia and try again That's alright though - I'm missing a

jupyter custom.css removal

て烟熏妆下的殇ゞ 提交于 2019-12-11 04:06:36
问题 By mistake, I updated this file to customize css. D:\Continuum\Anaconda2\Lib\site-packages\notebook\static\custom\custom.css To rollback the above change, 1) I put back the original file that I saved before. still the new css shows up in jupyter. 2) I removed all .ipython and .jupyter dir and it didn't work either. 3) I even uninstalled anaconda and still that css shows up. I'm really stuck here. Does anyone know how to go back to the default css of jupyter ? 回答1: Reposting as an answer: When