I'm doing the SQL course on coursera
Yes, you can install Jupyter Notebook as a library for python.
But also you can try open and run your file, for example, in Google Collab.
Related
I would like to load my jupyter notebook from my local repo directly on Colab, without uploading it first on GDrive. I'm well aware of the possibility to open Github notebooks directly on Colab, but that's not what I'm trying to make, since I would like to directly open notebooks from my local repo and then have the freedom to commit and push whenever I want. Is this possible or do I have to just give up and upload a copy on GDrive and then download the .ipynb everytime I want to save locally?
You can use my library to open Jupyter Notebook and open any local notebook in the same machine instance.
!pip install kora -q
from kora import jupyter
jupyter.start()
Then click the shown link. It should list local ipynb files. You can then click them to open and edit the files directly.
I open Jupyter lab,
I go to
file
Export Notebook As
Export Notebook As Executable Script.
I than get a warning from my system saying:
This type of file can harm your computer. Do you want to keep filename.py anyway?
Is there risk involved? Why do I get the warning? Would you recommend that way to convert my .ipynb to .py?
You are warned because your browser noticed that you are trying to download some .py script. When you download some from the Internet it really can be harmful. But the browser doesn't know that actually, it's your own code. So download it, you'll be fine.
Requirement:
Be able to audit (using logs) all the commands run in Jupyter Notebook by a user. The Jupyter Notebook is installed on Dataproc.
Is there a way we can log the command run by the user at the same time.
I have already tried changing Application.log_level in jupyter config file to 0 but no luck.
Looks like there was some discussion about this FR in the Jupyter community: https://groups.google.com/forum/#!topic/jupyter/sLKCCBwlKEc. You would have to modify the Jupyter kernel to print out all commands to a file.
I share a linux server user with my teammate, and we used the same jupyter notebook server together.
However recently I found some interesting plugins, so I created a new jupyter notebook directory ~/.my_jupyter, which is a copy of origin ~/.jupyter, and open jupyter notebook with config=/path/to/.my_jupyter/my_config.json then install some plugin by jupyter_contrib_nbextensions.
But when I enable a plugin in my jupyter, the other jupyter enable that plugin too. I found that new jupyter still reference the plugin status by origin .jupyter/nbconfig.
I am looking for a way to change nbconfig path just in my jupyter, hope someone can help me figure it out.
Thanks
Finally figure it out.
Create new tmux session and do following line in terminal:
export JUPYTER_CONFIG_DIR=/path/to/.my_jupyter
which .my_jupyter is configure path of your jupyter like origin ~/.jupyer.
I am attempting to install ipython notebook based on some instructions. However, while I tried to execute this 'In your favorite editor, open the file $HOME/.ipython/profile_default/ipython_notebook_config.py', I can't really open a file from TextWrangler. I am not familiar with this. Could anyone help me out there? Thank you very much!!
maybe it's not there? you can create it first, in Mac's terminal
touch $HOME/.ipython/profile_default/ipython_notebook_config.py
and then open it in TextWranggler
open -a /Applications/TextWrangler.app $HOME/.ipython/profile_default/ipython_notebook_config.py